Adafruit IO Arduino Library
AdafruitIO_Time.h
Go to the documentation of this file.
1 
15 #ifndef ADAFRUITIO_TIME_H
16 #define ADAFRUITIO_TIME_H
17 
18 #include "AdafruitIO_Definitions.h"
19 #include "AdafruitIO_MQTT.h"
20 #include "Adafruit_MQTT.h"
21 #include "Arduino.h"
22 
23 // forward declaration
24 class AdafruitIO;
25 
27  char *value,
28  uint16_t len);
30 /**************************************************************************/
35 /**************************************************************************/
37 
38 public:
42  void subCallback(char *val, uint16_t len);
43  char *data;
47 private:
48  AdafruitIOTimeCallbackType _dataCallback;
49  void _init();
50  char *_topic;
51  Adafruit_MQTT_Subscribe *_sub;
52  AdafruitIO *_io;
53 };
54 
55 #endif // ADAFRUITIO_FEED_H
Class for interacting with Adafruit IO.
Definition: AdafruitIO.h:45
void(* AdafruitIOTimeCallbackType)(char *value, uint16_t len)
Definition: AdafruitIO_Time.h:26
char * data
Definition: AdafruitIO_Time.h:43
aio_time_format_t format
Definition: AdafruitIO_Time.h:44
aio_time_format_t
Definition: AdafruitIO_Definitions.h:165
void onMessage(AdafruitIOTimeCallbackType cb)
Sets up a MQTT message callback.
Definition: AdafruitIO_Time.cpp:62
Class that contains MQTT subscription callbacks.
Definition: AdafruitIO_MQTT.h:25
~AdafruitIO_Time()
Deconstructor for Adafruit IO time service.
Definition: AdafruitIO_Time.cpp:44
Class that contains functions for interacting with the Adafruit IO Time Service.
Definition: AdafruitIO_Time.h:36
void subCallback(char *val, uint16_t len)
Sets up a MQTT subscription callback. Calls data callback with data.
Definition: AdafruitIO_Time.cpp:76
friend class AdafruitIO_Time
AdafruitIO_Time addition.
Definition: AdafruitIO.h:74