Tasmota/lib/PubSubClient-2.6.09
arendst 299bed1c05 v5.9.1f - Update libraries and a fix
5.9.1f
 * Upgrade library ArduinoJson to 5.11.2
 * Upgrade library
IRRemoteEsp8266 to 2.2.1 + 2 commits but tweaked some protocols to keep
code usage small
 * Upgrade library NeoPixelBus to 2.2.9
 * Upgrade
library OneWire to 2.3.3 + 6 commits
 * Formalize library PubSubClient
to 2.6 + 9 commits and additional delay
 * Add optional ADS1115 driver
as alternative for unsupported I2Cdevlib in esp8266-core 2.4.0-rc2
 *
Fix wrong response name for command HlwISet (#1214)
2017-11-19 18:02:03 +01:00
..
examples v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
src v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
tests v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
.gitignore v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
.travis.yml v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
CHANGES.txt v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
LICENSE.txt v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
README.md v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
keywords.txt v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
library.json v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00
library.properties v5.9.1f - Update libraries and a fix 2017-11-19 18:02:03 +01:00

README.md

Arduino Client for MQTT

This library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT.

Examples

The library comes with a number of example sketches. See File > Examples > PubSubClient within the Arduino application.

Full API documentation is available here: http://pubsubclient.knolleary.net

Limitations

  • It can only publish QoS 0 messages. It can subscribe at QoS 0 or QoS 1.
  • The maximum message size, including header, is 128 bytes by default. This is configurable via MQTT_MAX_PACKET_SIZE in PubSubClient.h.
  • The keepalive interval is set to 15 seconds by default. This is configurable via MQTT_KEEPALIVE in PubSubClient.h.
  • The client uses MQTT 3.1.1 by default. It can be changed to use MQTT 3.1 by changing value of MQTT_VERSION in PubSubClient.h.

Compatible Hardware

The library uses the Arduino Ethernet Client api for interacting with the underlying network hardware. This means it Just Works with a growing number of boards and shields, including:

  • Arduino Ethernet
  • Arduino Ethernet Shield
  • Arduino YUN use the included YunClient in place of EthernetClient, and be sure to do a Bridge.begin() first
  • Arduino WiFi Shield - if you want to send packets > 90 bytes with this shield, enable the MQTT_MAX_TRANSFER_SIZE define in PubSubClient.h.
  • Sparkfun WiFly Shield library
  • TI CC3000 WiFi - library
  • Intel Galileo/Edison
  • ESP8266

The library cannot currently be used with hardware based on the ENC28J60 chip such as the Nanode or the Nuelectronics Ethernet Shield. For those, there is an alternative library available.

License

This code is released under the MIT License.