I added some serial.println lines to the code to see where it may be stuck and see this in the console. I also displayed the SSID, FEED_NAME etc in setup() just to confirm I coded the config file correctly and the values look ok to me. Not sure where else to look for more details on the connection.
thanks
Code: Select all
Serial.print("FEED_NAME"); Serial.println(FEED_NAME);
Serial.print("FEED_OWNER"); Serial.println(FEED_OWNER);
Serial.print("IO_USERNAME");Serial.println(IO_USERNAME);
Serial.print("WIFI_SSID"); Serial.println(WIFI_SSID);
Serial.print("Connecting to Adafruit IO");
io.connect();
Serial.println("connected - now check IO status");
while(io.status() < AIO_CONNECTED) { // Wait for connection
Serial.write('.');
Serial.println(io.statusText());
Serial.println(io.status());
delay(500);
}
Serial.println("CONNECTED io.statusText=");
Serial.print(io.statusText());
14:20:27.188 -> .Idle. Waiting for connect to be called...
14:20:27.188 -> 0
14:20:27.722 -> .Disconnected from Adafruit IO.
14:20:27.722 -> 2
14:20:28.195 -> .Disconnected from Adafruit IO.
14:20:28.195 -> 2
14:20:28.713 -> .Disconnected from Adafruit IO.
14:20:28.713 -> 2
14:20:29.214 -> .Disconnected from Adafruit IO.
14:20:29.214 -> 2