Skip to content

A client library for the ESP8266 that provides support for MQTT

License

Notifications You must be signed in to change notification settings

Blastersky/pubsubclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A client library for the ESP8266 (using the Arduino environment) that provides support for MQTT.

Modified from Nicholas O'Leary's original for the Arduino + Ethernet shield:
http://knolleary.net/arduino-client-for-mqtt/

See here for the ESP8266-Arduino work:
https://github.com/esp8266/Arduino

New features
------------

A whole set of MQTT classes has been added, one for each message type.
This moved a good amount of code out of the PubSubClient class, leaving it to
handle the high-level flow of the protocol. The MQTT classes handle getting
data into and out of the messages.

The PubSubClient class operates mostly as it did before. However, the
connect(), publish(), subscribe(), and unsubscribe() methods can now take an
appropriate MQTT object. This allows extra options to be set e.g QoS on
publish, or multiple topics with one (un)subscribe message. See the mqtt_qos
example for how this is done with the chainable setter methods.

About

A client library for the ESP8266 that provides support for MQTT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 79.6%
  • Python 9.7%
  • Other 9.1%
  • C 1.1%
  • Makefile 0.5%