changed motor status read and write

master
varun 2 years ago
parent 860a4e47a7
commit bcd19ab345

@ -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' }); 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) { } catch (err) {
throw boom.boomify(err); throw boom.boomify(err);
} }

Loading…
Cancel
Save