diff --git a/app.js b/app.js index fd98f29..5414bd5 100644 --- a/app.js +++ b/app.js @@ -124,7 +124,9 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, { 'Content-Type': 'application/json' } }, res => { - console.log(res); + res.on('data', d => { + console.log(d); + }); }); const st = ldevice.getState(); noticeRequest.write(JSON.stringify({