|
|
|
@ -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'],
|
|
|
|
@ -598,6 +598,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get('/api/motor/read', {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Tank"],
|
|
|
|
@ -643,6 +644,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// fastify.post('/api/motor/write', {
|
|
|
|
|
// schema: {
|
|
|
|
|
// tags: ["Tank"],
|
|
|
|
|