一个用于 Arduino 以太网护板的客户端库,提供对 MQTT 的支持。
[!CAUTION] This library is not maintained. It was my first 'popular' Open Source project, and brought MQTT to the Arduino platform just as both were gaining popularity.
But times have changed, and I haven't needed to use it for a long time now. This means I simply don't have the setup locally to properly develop, test and maintain the library. Alternative libraries exist and I urge you to pick one that is actively maintained.
So Long and Thanks For All The PUBACKs
Nick 2026
This library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT.
The library comes with a number of example sketches. See File > Examples > PubSubClient within the Arduino application.
Full API documentation is available here: https://pubsubclient.knolleary.net
MQTT_MAX_PACKET_SIZE in PubSubClient.h or can be changed
by calling PubSubClient::setBufferSize(size).MQTT_KEEPALIVE in PubSubClient.h or can be changed by calling
PubSubClient::setKeepAlive(keepAlive).MQTT_VERSION in PubSubClient.h.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:
YunClient in place of EthernetClient, and
be sure to do a Bridge.begin() firstMQTT_MAX_TRANSFER_SIZE define in PubSubClient.h.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.
This code is released under the MIT License.
暂无开放 Issues,或尚未同步最近议题。