mqtt报错处理

This commit is contained in:
kerwincui
2022-08-03 22:35:25 +08:00
parent 339e065031
commit 145e02c7ad
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {