Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.


by marmoset on Thu Nov 09, 2017 1:15 am

I have a Particle Electron project which is running fine and posting up to Ubidots, but I'd like to port it over to using Adafruit IO.

I'm having trouble with the syntax of using the ADAFRUIT_IO_PARTICLE library on the Particle IDE. The syntax doesn't seem to follow the form of the various Adafruit IO examples.

Not seeming to like these statements:
in the definition section
Adafruit_IO_Feed *MoistureMarshCreek = io.feed("MoistureMarshCreek");
in the loop section

I'm getting these compile errors:
'io' was not declared in this scope
'AIO_CONNECTED' was not declared in this scope'
'class Adafruit_IO_Feed' has no member named 'save'

Any help would be appreciated

Posts: 1
Joined: Wed Nov 08, 2017 10:58 pm


by mattcarp on Thu Oct 18, 2018 8:59 pm

I know this is old, but I had the same question, too!

It turns out that the examples are best found in the Adafruit IO Learning System pages.

The intro article covers this with examples: https://learn.adafruit.com/adafruit-io?view=all

In the REST API section, there's a link to the GitHub location of the library. Go there, then navigate to the examples.

Here's the link to the GitHub repository for Adafruit IO: https://github.com/adafruit/Adafruit_IO_Arduino

Start with the classic "temperature/humidity" example:

https://github.com/adafruit/Adafruit_IO ... midity.ino

Posts: 22
Joined: Sun Jul 10, 2011 7:40 pm

Please be positive and constructive with your questions and comments.