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()) {