nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.61k stars 3.12k forks source link

MQTT connect failure callback reason constants #3642

Open TMDevel89 opened 4 months ago

TMDevel89 commented 4 months ago

I have a problem with the constant mqtt.CONNACK_REFUSED_SERVER_UNAVAILABLE

The result of the followed command is always nil. print(mqtt.CONNACK REFUSED SERVER UNAVAILABLE)

With other constants the correct values ​​are printed.