15 #ifndef ADAFRUITIO_FEED_H 16 #define ADAFRUITIO_FEED_H 21 #include "Adafruit_MQTT.h" 42 bool save(
char *value,
double lat = 0,
double lon = 0,
double ele = 0);
43 bool save(
bool value,
double lat = 0,
double lon = 0,
double ele = 0);
44 bool save(String value,
double lat = 0,
double lon = 0,
double ele = 0);
45 bool save(
int value,
double lat = 0,
double lon = 0,
double ele = 0);
46 bool save(
unsigned int value,
double lat = 0,
double lon = 0,
double ele = 0);
47 bool save(
long value,
double lat = 0,
double lon = 0,
double ele = 0);
48 bool save(
unsigned long value,
double lat = 0,
double lon = 0,
50 bool save(
float value,
double lat = 0,
double lon = 0,
double ele = 0,
52 bool save(
double value,
double lat = 0,
double lon = 0,
double ele = 0,
60 void setLocation(
double lat,
double lon,
double ele = 0);
82 Adafruit_MQTT_Subscribe *_sub;
83 Adafruit_MQTT_Publish *_pub;
84 Adafruit_MQTT_Publish *_get_pub;
90 #endif // ADAFRUITIO_FEED_H Class for interacting with Adafruit IO.
Definition: AdafruitIO.h:45
~AdafruitIO_Feed()
Adafruit IO Feed destructor.
Definition: AdafruitIO_Feed.cpp:62
bool create()
Creates a new Adafruit IO Feed https://io.adafruit.com/api/docs/#create-feed.
Definition: AdafruitIO_Feed.cpp:313
Class that provides methods for interfacing with Adafruit IO feed topics. https://io.adafruit.com/api/docs/mqtt.html#mqtt-topics.
Definition: AdafruitIO_Feed.h:34
friend class AdafruitIO_Feed
AdafruitIO_Feed addition.
Definition: AdafruitIO.h:50
void subCallback(char *val, uint16_t len)
Calls _datacallback if new data is avaliable on feed.
Definition: AdafruitIO_Feed.cpp:408
Class that contains MQTT subscription callbacks.
Definition: AdafruitIO_MQTT.h:25
bool save(char *value, double lat=0, double lon=0, double ele=0)
Updates Adafruit IO Feed.
Definition: AdafruitIO_Feed.cpp:113
void(* AdafruitIODataCallbackType)(AdafruitIO_Data *data)
Definition: AdafruitIO_Definitions.h:26
const char * owner
Definition: AdafruitIO_Feed.h:66
bool exists()
Checks if Adafruit IO Feed exists and belongs to username. https://io.adafruit.com/api/docs/#get-feed...
Definition: AdafruitIO_Feed.cpp:294
AdafruitIO_Data * data
Definition: AdafruitIO_Feed.h:69
AdafruitIO_Data * lastValue()
Retrieves the most recent value published to a feed. https://io.adafruit.com/api/docs/mqtt.html#using-the-get-topic.
Definition: AdafruitIO_Feed.cpp:346
const char * name
Definition: AdafruitIO_Feed.h:65
void onMessage(AdafruitIODataCallbackType cb)
Creates a new onMessage callback.
Definition: AdafruitIO_Feed.cpp:95
void setLocation(double lat, double lon, double ele=0)
Sets Adafruit IO feed location metadata.
Definition: AdafruitIO_Feed.cpp:395
Class for interacting with Adafruit IO Data Records. https://io.adafruit.com/api/docs/#data.
Definition: AdafruitIO_Data.h:30