diff --git a/app.js b/app.js index cf55b4e..1b5c5c1 100644 --- a/app.js +++ b/app.js @@ -134,13 +134,13 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, { console.error(error) }); - req.write({ + req.write(JSON.stringify({ "ts": Math.floor(Date.now() / 1000), "payload": { "user_id": '2', "devices": [] } - }); + })); req.end(); });