From c195ef5517558dae9fe11f92a1765a4fd4929144 Mon Sep 17 00:00:00 2001 From: Varun Date: Mon, 10 Mar 2025 15:01:07 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 6fd92d5c..c48818d6 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -5890,7 +5890,7 @@ const client = mqtt.connect('mqtt://35.207.198.4:1883'); client.on('connect', () => { console.log('Connected to MQTT broker'); - client.subscribe('water/iot-data/#', (err) => { + client.subscribe('water/iot-data/+', (err) => { if (err) { console.error('Error subscribing to topic:', err); } else {