master
varun 2 years ago
parent b101226d4f
commit eaaf9f1216

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

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

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

Loading…
Cancel
Save