|
|
|
@ -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")
|
|
|
|
|