MQTT how to know when we are not able to connect to broker?

前端 未结 0 1503
情话喂你
情话喂你 2021-02-19 22:48

I\'m putting this code on an IoT device:

    let mqtt = mqtt_module.create(serverID);
    mqtt.connect();
    mqtt.on("connected", function () {
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题