Adafruit IO Arduino Library
Classes | Macros | Typedefs | Enumerations
AdafruitIO_Definitions.h File Reference

Go to the source code of this file.

Classes

class  AdafruitIOGroupCallback
 Class that contains methods for Adafruit IO MQTT callbacks. More...
 

Macros

#define ADAFRUITIO_VERSION_MAJOR   4
 Adafruit IO Arduino Major Semvar.
 
#define ADAFRUITIO_VERSION_MINOR   2
 Adafruit IO Arduino Minor Semvar.
 
#define ADAFRUITIO_VERSION_PATCH   1
 Adafruit IO Arduino Patch Semvar.
 
#define AIO_PRINTER   Serial
 Where debug messages will be printed.
 
#define AIO_DEBUG_PRINT(...)   {}
 Prints debug output.
 
#define AIO_DEBUG_PRINTLN(...)   {}
 Prints line from debug output.
 
#define AIO_ERROR_PRINT(...)   {}
 Prints error output.
 
#define AIO_ERROR_PRINTLN(...)   {}
 Prints line from error output.
 
#define AIO_PING_INTERVAL   60000
 Adafruit IO Ping Interval, in milliseconds.
 
#define AIO_THROTTLE_RECONNECT_INTERVAL   60000
 Time to wait between re-connecting to Adafruit IO after throttled.
 
#define AIO_MQTT_CONNECTION_TIMEOUT   60000
 Time to wait for a successful reconnection after MQTT disconnect.
 
#define AIO_NET_CONNECTION_TIMEOUT   60000
 Time to wait for a successful reconnection after network disconnect.
 
#define AIO_NET_DISCONNECT_WAIT   300
 Time to wait for a net disconnect to take effect.
 
#define AIO_ERROR_TOPIC   "/errors"
 Adafruit IO Error MQTT Topic.
 
#define AIO_THROTTLE_TOPIC   "/throttle"
 Adafruit IO Throttle MQTT Topic.
 
#define AIO_SSL_FINGERPRINT   "4E C1 52 73 24 A8 36 D6 7A 4C 67 C7 91 0C 0A 22 B9 2D 5B CA"
 
#define AIO_FEED_NAME_LENGTH   258
 group, a dot, and actual feed name. More...
 
#define AIO_DATA_LENGTH   45
 Maximum length of data sent/recieved from Adafruit IO.
 
#define AIO_CSV_LENGTH
 Maximum comma-separated-value length from Adafruit IO. More...
 

Typedefs

typedef void(* AdafruitIODataCallbackType) (AdafruitIO_Data *data)
 

Enumerations

enum  aio_status_t {
  AIO_IDLE = 0, AIO_NET_DISCONNECTED = 1, AIO_DISCONNECTED = 2, AIO_FINGERPRINT_UNKOWN = 3,
  AIO_NET_CONNECT_FAILED = 10, AIO_CONNECT_FAILED = 11, AIO_FINGERPRINT_INVALID = 12, AIO_AUTH_FAILED = 13,
  AIO_SSID_INVALID, AIO_NET_CONNECTED = 20, AIO_CONNECTED = 21, AIO_CONNECTED_INSECURE = 22,
  AIO_FINGERPRINT_UNSUPPORTED = 23, AIO_FINGERPRINT_VALID = 24
}
 
enum  aio_time_format_t { AIO_TIME_SECONDS = 0, AIO_TIME_MILLIS = 1, AIO_TIME_ISO = 2 }
 

Detailed Description

This is part of the Adafruit IO library for the Arduino platform.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Tony DiCola, Todd Treece for Adafruit Industries

MIT license, all text here must be included in any redistribution.

Macro Definition Documentation

◆ AIO_SSL_FINGERPRINT

#define AIO_SSL_FINGERPRINT   "4E C1 52 73 24 A8 36 D6 7A 4C 67 C7 91 0C 0A 22 B9 2D 5B CA"

Latest Adafruit IO SSL Fingerprint

◆ AIO_FEED_NAME_LENGTH

#define AIO_FEED_NAME_LENGTH   258

group, a dot, and actual feed name.

Maximum length of an Adafruit IO Feed: Name; 128 + 1 + 128 for the

◆ AIO_CSV_LENGTH

#define AIO_CSV_LENGTH
Value:
4
#define AIO_FEED_NAME_LENGTH
group, a dot, and actual feed name.
Definition: AdafruitIO_Definitions.h:131

Maximum comma-separated-value length from Adafruit IO.

Typedef Documentation

◆ AdafruitIODataCallbackType

typedef void(* AdafruitIODataCallbackType) (AdafruitIO_Data *data)

Data callback type

Enumeration Type Documentation

◆ aio_status_t

aio_status_t offers 13 status states

◆ aio_time_format_t

Three different types of MQTT time feeds from IO