write motor status for sensor

master
varun 2 years ago
parent d493ddbd3c
commit 8d7de1ac5e

@ -576,8 +576,8 @@ module.exports = function (fastify, opts, next) {
fastify.post('/api/motor/write', { fastify.post('/api/motor/write', {
schema: { schema: {
tags: ["Tank"], tags: ["Tank"],
description: "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", summary: "This is to Write the motor status from iot",
body: { body: {
type: 'object', type: 'object',
required: ['motor_id', 'status'], required: ['motor_id', 'status'],
@ -597,6 +597,7 @@ module.exports = function (fastify, opts, next) {
}); });
fastify.get('/api/motor/read', { fastify.get('/api/motor/read', {
schema: { schema: {
@ -640,6 +641,8 @@ module.exports = function (fastify, opts, next) {
}); });

Loading…
Cancel
Save