First, context.
I've built the RGB Matrix Portal Room CO2 Monitor project (https://learn.adafruit.com/matrix-porta ... o2-monitor) and it works great, but I want to add logging of the data. The easiest way to do this seems to be through Adafruit IO. I'm trying to closely follow the basic instructions for getting started with this. (See https://learn.adafruit.com/adafruit-io- ... uino-setup.)
Before writing anything else, I have the Matrix Portal connected to my computer (Mac) with a good data USB cable, and the board is mounted to my filesystem as 'CIRCUITPY'.
Using the Library Manager in the Processing IDE, I've downloaded the Adafruit IO libraries. I opened the example file for adafruitIO_06_digital_in, getting a main file (?) and a config.h file. I modified the latter with my Adafruit username and key and my SSID information.
When I compile I get an error. Verbose output below, non-error content snipped out.
Code: Select all
Arduino: 1.8.16 (Mac OS X), Board: "Adafruit Matrix Portal M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, On"
[snip]
In file included from /Users/jason.miller/Documents/Arduino/adafruitio_06_digital_in/adafruitio_06_digital_in.ino:19:
config.h:49:1: error: 'AdafruitIO_WiFi' does not name a type
49 | AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
| ^~~~~~~~~~~~~~~
adafruitio_06_digital_in:31:1: error: 'AdafruitIO_Feed' does not name a type
31 | AdafruitIO_Feed *digital = io.feed("digital");
| ^~~~~~~~~~~~~~~
/Users/jason.miller/Documents/Arduino/adafruitio_06_digital_in/adafruitio_06_digital_in.ino: In function 'void setup()':
adafruitio_06_digital_in:46:3: error: 'io' was not declared in this scope
46 | io.connect();
| ^~
adafruitio_06_digital_in:49:23: error: 'AIO_CONNECTED' was not declared in this scope
49 | while(io.status() < AIO_CONNECTED) {
| ^~~~~~~~~~~~~
/Users/jason.miller/Documents/Arduino/adafruitio_06_digital_in/adafruitio_06_digital_in.ino: In function 'void loop()':
adafruitio_06_digital_in:66:3: error: 'io' was not declared in this scope
66 | io.run();
| ^~
adafruitio_06_digital_in:83:3: error: 'digital' was not declared in this scope; did you mean 'isdigit_l'?
83 | digital->save(current);
| ^~~~~~~
| isdigit_l
Using library Adafruit_IO_Arduino at version 4.1.1 in folder: /Users/jason.miller/Documents/Arduino/libraries/Adafruit_IO_Arduino
Using library Adafruit_MQTT_Library at version 2.4.2 in folder: /Users/jason.miller/Documents/Arduino/libraries/Adafruit_MQTT_Library
Using library ArduinoHttpClient at version 0.4.0 in folder: /Users/jason.miller/Documents/Arduino/libraries/ArduinoHttpClient
exit status 1
'AdafruitIO_WiFi' does not name a type
Can anyone point me to instructions for how to have the Matrix Portal talk with Adafruit IT, or point me to examples that include this functionality with a Matrix Portal? Thanks in advance.