OK, I'm back.
Got an Adafruit Feather M0 datalogger, and an Adafruit Ethernet FeatherWing, and tried again. Running the "adafruitio_00_publish" sketch the same initial sequence of issues appeared. First the Arduino IDE showed an error saying it couldn't find the Adafruit MQTT Library, so I installed that and tried the sketch again. This time it said it couldn't find the Ethernet2 library, so I installed that and tried the sketch a third time.
This time the sketch compiled ok and made it as far as this block of code in the sketch...
Code: Select all
while(io.status() < AIO_CONNECTED) {
Serial.print(".");
delay(500);
}
I stuck a debugging Serial.println in there, and io.status() is always returning a value of "2", which I believe is "AIO_DISCONNECTED".
Any idea what's going on?
I can run simple web client sketches just fine, so I know the feather, the ethernet wing, my connection to the Internet, and my soldering job are all OK. I've double checked my username (chrisspurgeon), AIO key, and feed name ("counter"), and they all seem just fine.
When verifying the Arduino sketch in verbose mode I see no errors, but I do see this warning...
Code: Select all
In file included from /Users/chrisspurgeon/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_Ethernet.h:17:0,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_build_711404/sketch/config.h:43,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_modified_sketch_764742/adafruitio_00_publish.ino:18:
/Users/chrisspurgeon/Documents/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:28:0: warning: "strncpy_P" redefined [enabled by default]
#define strncpy_P(dest, src, len) strncpy((dest), (src), (len))
^
In file included from /Users/chrisspurgeon/Library/Arduino15/packages/adafruit/hardware/samd/1.3.0/cores/arduino/Arduino.h:36:0,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_build_711404/sketch/adafruitio_00_publish.ino.cpp:1:
/Users/chrisspurgeon/Library/Arduino15/packages/adafruit/hardware/samd/1.3.0/cores/arduino/avr/pgmspace.h:74:0: note: this is the location of the previous definition
#define strncpy_P(s1, s2, n) strncpy((s1), (s2), (n))
^
In file included from /Users/chrisspurgeon/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_Ethernet.h:17:0,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_build_711404/sketch/config.h:43,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_modified_sketch_764742/adafruitio_00_publish.ino:18:
/Users/chrisspurgeon/Documents/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:29:0: warning: "strncasecmp_P" redefined [enabled by default]
#define strncasecmp_P(f1, f2, len) strncasecmp((f1), (f2), (len))
^
In file included from /Users/chrisspurgeon/Library/Arduino15/packages/adafruit/hardware/samd/1.3.0/cores/arduino/Arduino.h:36:0,
from /var/folders/0c/7c1k8k2j7sl3h77rhjm09_9h0000gp/T/arduino_build_711404/sketch/adafruitio_00_publish.ino.cpp:1:
/Users/chrisspurgeon/Library/Arduino15/packages/adafruit/hardware/samd/1.3.0/cores/arduino/avr/pgmspace.h:72:0: note: this is the location of the previous definition
#define strncasecmp_P(s1, s2, n) strncasecmp((s1), (s2), (n))
^
Other than that, no other warnings.
I would love it if I could actually get this thing working. Any suggestions or guidance would be most welcome!