From 5392fa01629876e77f23b0621658fc529e0d5e76 Mon Sep 17 00:00:00 2001 From: varun Date: Fri, 29 Dec 2023 03:39:30 -0500 Subject: [PATCH] change in read motor status --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index cf5a58c3..dc4659fd 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1481,7 +1481,7 @@ exports.motorstatus = async (req, reply) => { exports.readMotorStatus = async (req, reply) => { try { - const motor_id = req.body.motor_id; + const motor_id = req.query.motor_id; console.log(motor_id) // Perform any necessary logic based on action (1: Start, 2: Stop)