User Manual

fp: The callback handler function that will be fired when the feed changes on the AIO server. This function
should have the following signature:
Returns: 'True' (1) if the operation was successful, otherwise 'false' (0).
bool unfollow (void)
Calling this function will stop the follow callback and unsubscribe from the feed, meaning any changes will no longer
be received by this class.
Parameters: None
Returns: 'True' (1) if the operation was successful, otherwise 'false' (0).
bool followed (void)
Checks whether 'follow' is currently enabled or not (indicate whether or not we are subscribed to the AIO feed).
Parameters: None
Returns: 'True' (1) if the operation was successful, otherwise 'false' (0).
Example
For more examples of working with AdafruitIO and AdafruitIOFeed see the /AIO folder in /examples in the WICED
Feather board support package.
The name of the callback handler function can be set to anything you like, although the parameters and
return type must be identical.
void feed_callback(UTF8String message)
{
Serial.println(message);
}
/*********************************************************************
This is an example for our Feather WIFI modules
Pick one up today in the adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
MIT license, check LICENSE for more information
All text above, and the splash screen below must be included in
any redistribution
*********************************************************************/
#include <adafruit_feather.h>
#include <adafruit_mqtt.h>
#include <adafruit_aio.h>
/* This sketch connects to the Adafruit IO server at io.adafruit.com
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 139 of 202