NodeMCU and ESP8266: slow mqtt publish
问题 I'm using esp8266 with the firmware produced with Marcel's NodeMCU custom builds http://frightanic.com/nodemcu-custom-build/ I tested the "dev" branch and the "master". I changed a little bit the " Connect to MQTT Broker " code found here https://github.com/nodemcu/nodemcu-firmware -- init mqtt client with keepalive timer 120sec m = mqtt.Client("clientid", 120, "user", "password") m:on("connect", function(con) print ("connected") end) m:on("offline", function(con) print ("offline") end) -- m