0

ADAFRUIT_IO_PARTICLE Examples
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ADAFRUIT_IO_PARTICLE Examples

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
io.run();
MoistureMarshCreek->save(valueOf[NUM_READS/2].moisture);

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

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

Please be positive and constructive with your questions and comments.