forked from knolleary/pubsubclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
63 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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://knolleary.github.io/pubsubclient/ | ||
|
||
## 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 | ||
- Sparkfun WiFly Shield – when used with [this library](https://github.com/dpslwk/WiFly) | ||
- 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](https://github.com/njh/NanodeMQTT) available. | ||
|
||
## License | ||
|
||
This code is released under the MIT License. |