changes in creating batch number for sensors

master
Varun 9 months ago
parent bcd01dff84
commit 8c82d3e7f2

@ -1208,7 +1208,7 @@ exports.createSensor = async (req, reply) => {
let finalBatchNo = batchno;
if (batchno === 'new') {
if (batchno === 'New') {
let isUnique = false;
while (!isUnique) {

@ -4730,7 +4730,7 @@ client.on('message', async (topic, message) => {
const inputConnection = motorTank.connections.inputConnections.find(conn => conn.motor_id === hw_Id); // Updated variable name
if (inputConnection) {
inputConnection.motor_status = status; // Update motor status
console.log(inputConnection.motor_stop_status,"inputConnection.motor_stop_status")
if (inputConnection.motor_stop_status === "1" && status === "2") {
console.log("got into forced manual")

Loading…
Cancel
Save