ashok 9 months ago
commit 3ef5214654

@ -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 {

Loading…
Cancel
Save