|
|
|
@ -583,7 +583,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
required: ['motor_id', 'status'],
|
|
|
|
|
properties: {
|
|
|
|
|
motor_id: { type: 'string' },
|
|
|
|
|
status: { type: 'string', enum: ['on', 'off'] },
|
|
|
|
|
status: { type: 'string'},
|
|
|
|
|
current: { type: 'string' },
|
|
|
|
|
temp: { type: 'string' },
|
|
|
|
|
},
|
|
|
|
@ -610,6 +610,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
},
|
|
|
|
|
// required: ['motor_id'],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
handler: tanksController.readMotorStatus
|
|
|
|
|