|
|
@ -4949,6 +4949,7 @@ client.on('message', async (topic, message) => {
|
|
|
|
console.log('Motor not found for the specified motor_id');
|
|
|
|
console.log('Motor not found for the specified motor_id');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Find the inputConnection for the motor and update motor status
|
|
|
|
// Find the inputConnection for the motor and update motor status
|
|
|
|
const inputConnection = motorTank.connections.inputConnections.find(conn => conn.motor_id === hw_Id); // Updated variable name
|
|
|
|
const inputConnection = motorTank.connections.inputConnections.find(conn => conn.motor_id === hw_Id); // Updated variable name
|
|
|
|