73f5be4e5c
The payload data is never modified by the library, so using const is possible without any further changes. Using const allows using a string literal, or String::c_str() as the payload. |
||
---|---|---|
examples | ||
.travis.yml | ||
Adafruit_MQTT_CC3000.h | ||
Adafruit_MQTT_Client.cpp | ||
Adafruit_MQTT_Client.h | ||
Adafruit_MQTT_FONA.h | ||
Adafruit_MQTT.cpp | ||
Adafruit_MQTT.h | ||
library.properties | ||
LICENSE | ||
README.md |
Adafruit MQTT Library
Arduino library for MQTT support, including access to Adafruit IO. Works with the Adafruit CC3000, FONA, ESP8266 Arduino platforms, and anything that supports Arduino's Client interface (like Ethernet shield).
See included examples for how to use the library to access an MQTT service to publish and subscribe to feeds. Note that this does not support the full MQTT spec but is intended to support enough for QoS 0 and 1 publishing.
Depends on the following other libraries depending on the target platform:
-
Adafruit SleepyDog, watchdog library used by FONA and CC3000 code for reliability.
-
Adafruit CC3000, required for the CC3000 hardware.
-
Adafruit FONA, required for the FONA hardware.
Future todos:
-
QoS > 0 for publication
-
Subscription callbacks
-
example with way more timeout/reconnection protection
-
Wills
-
remove watchdog