Go to file
Matthijs Kooijman b996b096b3 Fix Adafruit_MQTT:subscribe()
This method contained a loop that checked for an existing subscription,
but it only printed a debug message if so. Now, it immediately returns
true if the subscription is already registered.

When this method succesfully adds a subscription, it was documented to
return true, but the actual code did not return anything in this case,
resulting in a compiler warning. In practice, on AVR, the value of the
first argument would be returned, which likely evaluates as true, so
it is likely it actually seemed to work fine.
2015-07-27 20:32:38 +02:00
examples Add Adfruit_MQTT::connectErrorString() method 2015-07-27 20:32:36 +02:00
.travis.yml simplify travis config with new helper functions 2015-07-27 14:04:58 -04:00
Adafruit_MQTT.cpp Fix Adafruit_MQTT:subscribe() 2015-07-27 20:32:38 +02:00
Adafruit_MQTT.h Fix Adafruit_MQTT:subscribe() 2015-07-27 20:32:38 +02:00
Adafruit_MQTT_CC3000.h Add connected() function to MQTT class. Update examples with robust reconnect logic. 2015-07-05 14:29:13 -07:00
Adafruit_MQTT_Client.cpp Add connected() function to MQTT class. Update examples with robust reconnect logic. 2015-07-05 14:29:13 -07:00
Adafruit_MQTT_Client.h Add connected() function to MQTT class. Update examples with robust reconnect logic. 2015-07-05 14:29:13 -07:00
Adafruit_MQTT_FONA.h Add connected() function to MQTT class. Update examples with robust reconnect logic. 2015-07-05 14:29:13 -07:00
LICENSE Cleanup and prepare for publishing. 2015-06-10 15:38:34 -07:00
README.md adds travis icon to readme 2015-07-15 12:09:51 -04:00
library.properties Merge connected branch, bump to version 0.9.3 2015-07-14 15:54:04 -07:00

README.md

Adafruit MQTT Library Build Status

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:

Future todos:

  • QoS > 0 for publication

  • Subscription callbacks

  • example with way more timeout/reconnection protection

  • Wills

  • remove watchdog