|
|
|
@ -1474,11 +1474,11 @@ exports.readMotorStatus = async (req, reply) => {
|
|
|
|
|
return reply.status(404).send({ status_code: 404, message: 'Tank not found for the specified motor_id' });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const motor_status = motorInfo.motor_status;
|
|
|
|
|
const motor_stop_status = motorInfo.motor_stop_status;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply.send({ status_code: 200, motor_status:motor_status });
|
|
|
|
|
reply.send({ status_code: 200, motor_stop_status:motor_stop_status });
|
|
|
|
|
} catch (err) {
|
|
|
|
|
throw boom.boomify(err);
|
|
|
|
|
}
|
|
|
|
|