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