mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
mqtt报错处理
This commit is contained in:
@@ -79,7 +79,7 @@ mqttTool.subscribe = function (topics) {
|
||||
qos: 1
|
||||
}, function (err, res) {
|
||||
console.log("订阅主题:", topics);
|
||||
if (!err && res.length > 0) {
|
||||
if (!err) {
|
||||
console.log("订阅成功")
|
||||
resolve('订阅成功')
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user