From 52655f3a514bb8887bf73a56555be3adc28eb45a Mon Sep 17 00:00:00 2001 From: Evgenii Abramov Date: Tue, 11 May 2021 00:53:25 +0300 Subject: [PATCH] c --- app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index a2a63e5..cf55b4e 100644 --- a/app.js +++ b/app.js @@ -134,7 +134,13 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, { console.error(error) }); - // req.write(data); + req.write({ + "ts": Math.floor(Date.now() / 1000), + "payload": { + "user_id": '2', + "devices": [] + } + }); req.end(); });