|
|
@ -487,10 +487,11 @@ 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",
|
|
|
|
summary: "this is to Create IOT Device for slave integrated in master",
|
|
|
|
summary: "this is to Create IOT Device for slave integrated in master",
|
|
|
|
body: {
|
|
|
|
body: {
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
properties: {
|
|
|
@ -516,12 +517,12 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handler: tanksController.IotDeviceforstandalone
|
|
|
|
handler: tanksController.IotDeviceforstandalonedevice
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/APIRead", {
|
|
|
|
fastify.get("/api/APIRead", {
|
|
|
|