master
Varun 1 year ago
parent 88b272ee4a
commit 9967ff4ac1

@ -2749,7 +2749,7 @@ exports.IotDevice = async (req, reply) => {
}; };
exports.IotDeviceforstandalone = async (req, reply) => { exports.IotDeviceforstandalonedevice = async (req, reply) => {
try { try {
const { hardwareId, Motor_status, tanks } = req.body; const { hardwareId, Motor_status, tanks } = req.body;

@ -487,6 +487,7 @@ module.exports = function (fastify, opts, next) {
fastify.route({ fastify.route({
method: "POST", method: "POST",
url: "/api/APIWriteforstandalone", url: "/api/APIWriteforstandalone",
schema: { schema: {
tags: ["Tank"], tags: ["Tank"],
description: "This is for creating an IOT Device for slave integrated in master", description: "This is for creating an IOT Device for slave integrated in master",
@ -516,7 +517,7 @@ module.exports = function (fastify, opts, next) {
} }
] ]
}, },
handler: tanksController.IotDeviceforstandalone handler: tanksController.IotDeviceforstandalonedevice
}); });

Loading…
Cancel
Save