master
Varun 11 months ago
parent 41c23deb74
commit 00eee1f826

@ -1519,7 +1519,7 @@ const sendNotification = async (fcmTokens, title, body) => {
// }
// };
exports.publishMotorStopStatus = async (motor_id, motor_stop_status) => {
exports. publishMotorStopStatus = async (motor_id, motor_stop_status) => {
const payload = {
topic: 'operation',
object: {
@ -4370,7 +4370,7 @@ exports.getBlockData = async (req, reply) => {
const mqtt = require('mqtt');
const client = mqtt.connect('mqtt://35.207.198.4:1884'); // Connect to MQTT broker
const client = mqtt.connect('mqtt://35.207.198.4:1883'); // Connect to MQTT broker
client.on('connect', () => {
console.log('Connected to MQTT broker');

Loading…
Cancel
Save