|
|
@ -1515,6 +1515,7 @@ exports.writeMotorStatus = async (req, reply) => {
|
|
|
|
// For example, update a database with the new status, current, and temp values
|
|
|
|
// For example, update a database with the new status, current, and temp values
|
|
|
|
let result;
|
|
|
|
let result;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result = await Tank.findOneAndUpdate(
|
|
|
|
result = await Tank.findOneAndUpdate(
|
|
|
|
{ motor_id: motor_id },
|
|
|
|
{ motor_id: motor_id },
|
|
|
|
{ $set: { motor_status: status } }
|
|
|
|
{ $set: { motor_status: status } }
|
|
|
|