diff --git a/examples/tinymqtt-test/tinymqtt-test.ino b/examples/tinymqtt-test/tinymqtt-test.ino index 3c5fb93..d4f25b7 100644 --- a/examples/tinymqtt-test/tinymqtt-test.ino +++ b/examples/tinymqtt-test/tinymqtt-test.ino @@ -1,6 +1,13 @@ #include // https://github.com/hsaturn/TinyMqtt #include -#include +#if defined(ESP8266) + #include +#elif defined(ESP32) + #include +#else + #error Unsupported platform +#endif +#include #include #include @@ -11,6 +18,7 @@ * Upload the sketch, the use the terminal. * Press H for mini help. * + * tested with mqtt-spy-0.5.4 * TODO examples of scripts */ @@ -715,7 +723,9 @@ void loop() } static long count; + #if defined(ESP9266) MDNS.update(); + #endif if (MqttClient::counter != count) { diff --git a/library.json b/library.json index b17956e..d886691 100644 --- a/library.json +++ b/library.json @@ -1,12 +1,12 @@ { "name": "TinyMqtt", "keywords": "ethernet, mqtt, m2m, iot", - "description": "MQTT is a lightweight messaging protocol ideal for small devices. This library allows to send and receive MQTT messages. It does support MQTT 3.1.1 with QOS=0.", + "description": "MQTT is a lightweight messaging protocol ideal for small devices. This library allows to send and receive and host a broker for MQTT. It does support MQTT 3.1.1 with QOS=0 on ESP8266 and ESP32 WROOM platfrms.", "repository": { "type": "git", "url": "https://github.com/hsaturn/TinyMqtt.git" }, - "version": "0.7.3", + "version": "0.7.4", "exclude": "", "examples": "examples/*/*.ino", "frameworks": "arduino", diff --git a/library.properties b/library.properties index fc85179..5505329 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=TinyMqtt -version=0.7.3 +version=0.7.4 author=Francois BIOT, HSaturn, maintainer=Francois BIOT, HSaturn, sentence=A tiny broker and client library for MQTT messaging. -paragraph=MQTT is a lightweight messaging protocol ideal for small devices. This library allows to send and receive MQTT messages and to host a broker in your ESP. It does support MQTT 3.1.1 with QoS=0. +paragraph=MQTT is a lightweight messaging protocol ideal for small devices. This library allows to send and receive MQTT messages and to host a broker in your ESP 8266 and 32 WROOM. It does support MQTT 3.1.1 with QoS=0. category=Communication url=https://github.com/hsaturn/TinyMqtt architectures=*