2022年4月20日
摘要: package main import ( "fmt" "time" MQTT "github.com/eclipse/paho.mqtt.golang" ) // 连接的回掉函数 var connectHandler MQTT.OnConnectHandler = func(client MQTT 阅读全文
posted @ 2022-04-20 17:16 金科许俊 阅读(577) 评论(0) 推荐(0)
摘要: 1、引用Mqtt包 MQTT "github.com/eclipse/paho.mqtt.golang" 2、异常报错 dial tcp 142.251.43.17:443: connectex: A connection attempt failed because the connected p 阅读全文
posted @ 2022-04-20 16:16 金科许俊 阅读(325) 评论(0) 推荐(0)