read and write motor status

master
bhaskar 2 years ago
parent 7477b29eb3
commit bd50f4c8e6

@ -1620,3 +1620,4 @@ exports.writeMotorStatus = async (request, reply) => {
return reply.code(500).send({ error: 'Internal Server Error' }); return reply.code(500).send({ error: 'Internal Server Error' });
} }
} }

@ -753,6 +753,8 @@ module.exports = function (fastify, opts, next) {
handler: tanksController.readMotorStatus handler: tanksController.readMotorStatus
}); });
next(); next();
} }

Loading…
Cancel
Save