mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 09:01:00 +03:00
test
This commit is contained in:
3
app.js
3
app.js
@@ -127,6 +127,9 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, {
|
|||||||
res.on('data', d => {
|
res.on('data', d => {
|
||||||
console.log(d);
|
console.log(d);
|
||||||
});
|
});
|
||||||
|
res.on('error', err => {
|
||||||
|
console.log(err);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
const st = ldevice.getState();
|
const st = ldevice.getState();
|
||||||
noticeRequest.write(JSON.stringify({
|
noticeRequest.write(JSON.stringify({
|
||||||
|
Reference in New Issue
Block a user