Error conexion
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Error conexion

by Justinnnnnnnnnnnnnnnnnnn on Tue May 28, 2019 8:01 am

Good morning, I have problems with the connection, I am using an adafruit code to connect to the Adafruit IO, but there is no way.
I really do not know what is happening;
- If the fault is in the Wi-Fi connection (I have tried it in two different Wi-Fi networks).
- Or if you are in connection with my Adafruit IO account.
- Or if the problem is in the microcontroller, I have also tested it with two different microcontrollers.
Add that I use the IDE Arduino 1.8.5 and I have the Adafruit IO library Arduino by Adafruit version 2.0.6; Adafruit MQTT Library version 1.0.3 and the Adafruit PN532
Someone could help me??
I attach the script.
Thank you
Code: Select all | TOGGLE FULL SIZE
#include <Arduino.h>
#include "adafruit.h"//permite al programa de acceder que estan en la pestaña Adafruit.h, ahora podemos utilizar las funciones de otra pestaña
#define SENSOR D8

void setup() {
    pinMode(SENSOR, INPUT);

    //hay que llamar a la funcion despues de serial
    Serial.println("Connexion activa");

void loop() {
    int movimiento = digitalRead(SENSOR);
    if (movimiento == LOW) Serial.println("Detectando");
    else Serial.println("No detectando");
(628 Bytes) Downloaded 56 times
Last edited by franklin97355 on Tue May 28, 2019 1:21 pm, edited 1 time in total.
Reason: Added code inline for easier reading.

Posts: 7
Joined: Mon May 27, 2019 8:05 am

Re: Error conexion

by adafruit_support_carter on Tue May 28, 2019 1:18 pm

What microcontroller(s) are you using?

Posts: 12991
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.