22c3533745
The lastread array stores the data bytes of the most recently read received packet. It was previously declared as an array of pointers to uint8_t, instead of an array of uint8_t, which obviously was not the intention. Because the examples explicitely cast to (char*) for printing (because Print::println(uint8_t[]) is not defined) and a pointer is at least as big as uint8_t and memcpy uses void*, this problem did not show up before. |
||
---|---|---|
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