diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index cd03507e..12e4304e 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6220,13 +6220,13 @@ async function processIotData(hw_Id, data) { if (existingTank.slave_status === "working" || !existingTank.slave_status) { // First time signal is lost - existingTank.slave_status = "signal_lost"; + existingTank.slave_status = "signal_lost1"; existingTank.slave_signal_lost_time = now.format('DD-MMM-YYYY - HH:mm:ss'); await existingTank.save(); console.log(`⚠️ Signal lost for tank [${tankhardwareId}] at ${existingTank.slave_signal_lost_time}`); - } else if (existingTank.slave_status === "signal_lost") { + } else if (existingTank.slave_status === "signal_lost1") { const lostTime = moment(existingTank.slave_signal_lost_time, 'DD-MMM-YYYY - HH:mm:ss'); const minutesElapsed = now.diff(lostTime, 'minutes');