Arduino Client for MQTT
This library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT
For more information about MQTT, visit MQTT.org.
Download
The latest version of the library can be downloaded from GitHub.
Documentation
The library comes with a number of example sketches. See File > Examples > PubSubClient
within the Arduino application.
Full API Documentation is available.
Author
- Nick O’Leary - @knolleary
License
This library is released under the MIT License.
Change History
The complete change history is available on GitHub.
Latest version: 2.8 - released 2020-05-20
- Add
setBufferSize()
to overrideMQTT_MAX_PACKET_SIZE
- Add
setKeepAlive()
to overrideMQTT_KEEPALIVE
- Add
setSocketTimeout()
to overideMQTT_SOCKET_TIMEOUT
- Added check to prevent subscribe/unsubscribe to empty topics
- Declare wifi mode prior to connect in ESP example
- Use
strnlen
to avoid overruns - Support pre-connected Client objects