From 5d6d29ef5e7c570acd7922f10931039c43b11423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20G=C3=A4hwiler?= Date: Mon, 9 Dec 2019 10:43:38 +0100 Subject: [PATCH] yield for zero ms --- library.properties | 2 +- src/MQTTClient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index 594cf72..e5b2385 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=MQTT -version=2.4.6 +version=2.4.7 author=Joel Gaehwiler maintainer=Joel Gaehwiler sentence=MQTT library for Arduino diff --git a/src/MQTTClient.cpp b/src/MQTTClient.cpp index 839be63..071d9c0 100644 --- a/src/MQTTClient.cpp +++ b/src/MQTTClient.cpp @@ -49,7 +49,7 @@ inline lwmqtt_err_t lwmqtt_arduino_network_read(void *ref, uint8_t *buffer, size } // wait/unblock for some time (RTOS based boards may otherwise fail since the wifi task cannot provide the data) - delay(1); + delay(0); // otherwise check status if (!n->client->connected()) {