|
|
|
@ -1477,8 +1477,10 @@ exports.motorstatus = async (req, reply) => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exports.readMotorStatus = async (req, reply) => {
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
const motor_id = req.query.motor_id;
|
|
|
|
|
|
|
|
|
|
// Perform any necessary logic based on action (1: Start, 2: Stop)
|
|
|
|
@ -1495,7 +1497,9 @@ exports.readMotorStatus = async (req, reply) => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exports.writeMotorStatus = async (req, reply) => {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const { motor_id, status, current, temp } = req.body;
|
|
|
|
|
|
|
|
|
|