master
varun 2 years ago
parent b101226d4f
commit eaaf9f1216

@ -972,6 +972,7 @@ exports.IotDevice = async (req, reply) => {
tankHeight: tank.tankHeight, tankHeight: tank.tankHeight,
maxLevel: tank.maxLevel, maxLevel: tank.maxLevel,
minLevel: tank.minLevel minLevel: tank.minLevel
})); }));
// create a new IOttank document with the provided data // create a new IOttank document with the provided data

@ -107,3 +107,4 @@ const IotData = mongoose.model("IotData", IOttankSchema);
module.exports = { module.exports = {
Tank, MotorData,IotData Tank, MotorData,IotData
} }

@ -367,6 +367,7 @@ module.exports = function (fastify, opts, next) {
}); });
fastify.get("/api/APIRead", { fastify.get("/api/APIRead", {
schema: { schema: {
tags: ["Tank"], tags: ["Tank"],

Loading…
Cancel
Save