master^2
Varun 9 months ago
parent 7a72a2d6b4
commit d721b4d37c

@ -2344,6 +2344,7 @@ cron.schedule("* * * * *", async () => {
// }; // };
exports.publishMotorStopStatus = async (motor_id, motor_stop_status) => { exports.publishMotorStopStatus = async (motor_id, motor_stop_status) => {
console.log("entered publish",motor_id,motor_stop_status)
const deviceTopic = `water/operation/${motor_id}`; // Target specific IoT const deviceTopic = `water/operation/${motor_id}`; // Target specific IoT
const payload = { const payload = {
topic: 'operation', topic: 'operation',

Loading…
Cancel
Save