16 #ifndef ADAFRUITIO_DEFINITIONS_H_ 17 #define ADAFRUITIO_DEFINITIONS_H_ 19 #define ADAFRUITIO_VERSION_MAJOR 4 20 #define ADAFRUITIO_VERSION_MINOR 2 21 #define ADAFRUITIO_VERSION_PATCH 1 77 #define AIO_PRINTER Serial 81 #define AIO_DEBUG_PRINT(...) \ 82 { AIO_PRINTER.print(__VA_ARGS__); } 83 #define AIO_DEBUG_PRINTLN(...) \ 84 { AIO_PRINTER.println(__VA_ARGS__); } 86 #define AIO_DEBUG_PRINT(...) \ 88 #define AIO_DEBUG_PRINTLN(...) \ 94 #define AIO_ERROR_PRINT(...) \ 95 { AIO_PRINTER.print(__VA_ARGS__); } 96 #define AIO_ERROR_PRINTLN(...) \ 97 { AIO_PRINTER.println(__VA_ARGS__); } 99 #define AIO_ERROR_PRINT(...) \ 101 #define AIO_ERROR_PRINTLN(...) \ 105 #define AIO_PING_INTERVAL 60000 106 #define AIO_THROTTLE_RECONNECT_INTERVAL \ 108 #define AIO_MQTT_CONNECTION_TIMEOUT \ 110 #define AIO_NET_CONNECTION_TIMEOUT \ 112 #define AIO_NET_DISCONNECT_WAIT \ 115 #define AIO_ERROR_TOPIC "/errors" 116 #define AIO_THROTTLE_TOPIC "/throttle" 121 #define AIO_SSL_FINGERPRINT \ 122 "4E C1 52 73 24 A8 36 D6 7A 4C 67 C7 91 0C 0A 22 B9 2D 5B CA" 127 #define AIO_FEED_NAME_LENGTH \ 131 #define AIO_DATA_LENGTH \ 133 #define AIO_CSV_LENGTH \ 134 AIO_FEED_NAME_LENGTH + \ 141 AIO_NET_DISCONNECTED = 1,
142 AIO_DISCONNECTED = 2,
143 AIO_FINGERPRINT_UNKOWN = 3,
145 AIO_NET_CONNECT_FAILED = 10,
146 AIO_CONNECT_FAILED = 11,
147 AIO_FINGERPRINT_INVALID = 12,
148 AIO_AUTH_FAILED = 13,
152 AIO_NET_CONNECTED = 20,
154 AIO_CONNECTED_INSECURE = 22,
155 AIO_FINGERPRINT_UNSUPPORTED = 23,
156 AIO_FINGERPRINT_VALID = 24
163 AIO_TIME_SECONDS = 0,
AdafruitIOGroupCallback(const char *f, AdafruitIODataCallbackType cb)
Sets up MQTT Group callbacks.
Definition: AdafruitIO_Definitions.h:45
aio_time_format_t
Definition: AdafruitIO_Definitions.h:165
const char * feed
Definition: AdafruitIO_Definitions.h:64
void(* AdafruitIODataCallbackType)(AdafruitIO_Data *data)
Definition: AdafruitIO_Definitions.h:26
Class that contains methods for Adafruit IO MQTT callbacks.
Definition: AdafruitIO_Definitions.h:34
AdafruitIODataCallbackType dataCallback
Definition: AdafruitIO_Definitions.h:66
Class for interacting with Adafruit IO Data Records. https://io.adafruit.com/api/docs/#data.
Definition: AdafruitIO_Data.h:30
aio_status_t
Definition: AdafruitIO_Definitions.h:142
AdafruitIOGroupCallback * next_cb
Definition: AdafruitIO_Definitions.h:67
AdafruitIOGroupCallback(AdafruitIODataCallbackType cb)
Sets up MQTT Group callbacks.
Definition: AdafruitIO_Definitions.h:58