From 8d7de1ac5e5e57fff098e3dce22530e9c57146a3 Mon Sep 17 00:00:00 2001 From: varun Date: Mon, 8 Jan 2024 00:35:56 -0500 Subject: [PATCH] write motor status for sensor --- src/routes/tanksRoute.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/routes/tanksRoute.js b/src/routes/tanksRoute.js index ffdf6c7c..7d25fcc9 100644 --- a/src/routes/tanksRoute.js +++ b/src/routes/tanksRoute.js @@ -576,8 +576,8 @@ module.exports = function (fastify, opts, next) { fastify.post('/api/motor/write', { schema: { tags: ["Tank"], - description: "This is to Write the motor status", - summary: "This is to Write the motor status", + description: "This is to Write the motor status from iot", + summary: "This is to Write the motor status from iot", body: { type: 'object', required: ['motor_id', 'status'], @@ -597,6 +597,7 @@ module.exports = function (fastify, opts, next) { }); + fastify.get('/api/motor/read', { schema: { @@ -640,6 +641,8 @@ module.exports = function (fastify, opts, next) { }); + +