post_img

Solution to ESP8266 PubSubClient Publish Delay Issue

AI Excerpt
Explore the mystery of ESP8266 PubSubClient publishing delay. Why is MQTT push always half a beat late? After checking that the board and the server are both fine, the key is the lack of buffering after publish in the loop. After increasing the delay, the publishing takes effect immediately!