@ -2344,6 +2344,7 @@ cron.schedule("* * * * *", async () => {
// };
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 payload = {
topic: 'operation',