Open z4nD4R opened 6 years ago
first of all - I wouldn't use delay(x) in loop();
Checkout internal timers for ESP platforms. https://github.com/marvinroger/async-mqtt-client/blob/master/examples/FullyFeatured-ESP32/FullyFeatured-ESP32.ino
@slavino , not sure if coupled with the issue but could be. What kind of timer would you recomend to use?
Y
Hello everyone,
I'm using
pubsubclient
and works without issue, except one which I'm not sure if coupled with the lib itself. On my ESP32 I'm running simple code to publish humidity and temperature to MQTT broker. After some time the weird values are sending to MQTT. The interesting thing is, when I comment the code about publishing it works withou issue - no weird values are displayed.My code:
I'd appreciate any help.
Y