knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.82k stars 1.47k forks source link

Publish() takes long time while the network busy #953

Open yo930 opened 2 years ago

yo930 commented 2 years ago

Hi, I am using the publish() function with ESP32 in timer interrupted loop. The function usually takes only 5ms or so. But when some other devices under same WiFi network are getting busy, the process time goes longer, for example 500-1200ms.

Does anyone have solution for that? As I want to keep the timer interval, if the publish function takes longer time than 100ms, I want to cancel the publish.

Thank you, Yosuke