mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 09:01:00 +03:00
c
This commit is contained in:
4
app.js
4
app.js
@@ -134,13 +134,13 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, {
|
|||||||
console.error(error)
|
console.error(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
req.write({
|
req.write(JSON.stringify({
|
||||||
"ts": Math.floor(Date.now() / 1000),
|
"ts": Math.floor(Date.now() / 1000),
|
||||||
"payload": {
|
"payload": {
|
||||||
"user_id": '2',
|
"user_id": '2',
|
||||||
"devices": []
|
"devices": []
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
req.end();
|
req.end();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user