pubsubclient-master

所属分类:其他
开发工具:C/C++
文件大小:41KB
下载次数:0
上传日期:2019-01-14 14:01:48
上 传 者huypq6
说明:  arduino pubsub client library

文件列表:
.travis.yml (96, 2018-11-02)
CHANGES.txt (2382, 2018-11-02)
LICENSE.txt (1065, 2018-11-02)
examples (0, 2018-11-02)
examples\mqtt_auth (0, 2018-11-02)
examples\mqtt_auth\mqtt_auth.ino (1079, 2018-11-02)
examples\mqtt_basic (0, 2018-11-02)
examples\mqtt_basic\mqtt_basic.ino (1967, 2018-11-02)
examples\mqtt_esp8266 (0, 2018-11-02)
examples\mqtt_esp8266\mqtt_esp8266.ino (3736, 2018-11-02)
examples\mqtt_large_message (0, 2018-11-02)
examples\mqtt_large_message\mqtt_large_message.ino (5499, 2018-11-02)
examples\mqtt_publish_in_callback (0, 2018-11-02)
examples\mqtt_publish_in_callback\mqtt_publish_in_callback.ino (1565, 2018-11-02)
examples\mqtt_reconnect_nonblocking (0, 2018-11-02)
examples\mqtt_reconnect_nonblocking\mqtt_reconnect_nonblocking.ino (1425, 2018-11-02)
examples\mqtt_stream (0, 2018-11-02)
examples\mqtt_stream\mqtt_stream.ino (1220, 2018-11-02)
keywords.txt (760, 2018-11-02)
library.json (771, 2018-11-02)
library.properties (602, 2018-11-02)
src (0, 2018-11-02)
src\PubSubClient.cpp (19996, 2018-11-02)
src\PubSubClient.h (7328, 2018-11-02)
tests (0, 2018-11-02)
tests\Makefile (514, 2018-11-02)
tests\src (0, 2018-11-02)
tests\src\connect_spec.cpp (9877, 2018-11-02)
tests\src\keepalive_spec.cpp (4876, 2018-11-02)
tests\src\lib (0, 2018-11-02)
tests\src\lib\Arduino.h (411, 2018-11-02)
tests\src\lib\BDDTest.cpp (1153, 2018-11-02)
tests\src\lib\BDDTest.h (593, 2018-11-02)
tests\src\lib\Buffer.cpp (593, 2018-11-02)
tests\src\lib\Buffer.h (366, 2018-11-02)
... ...

# 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: https://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](https://github.com/dpslwk/WiFly) - TI CC3000 WiFi - [library](https://github.com/sparkfun/SFE_CC3000_Library) - Intel Galileo/Edison - ESP8266 - ESP32 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.

近期下载者

相关文件


收藏者