From 042bef0bf7b0c8fc4acb9377be23dc58d653a965 Mon Sep 17 00:00:00 2001 From: Ollo Date: Thu, 20 Jan 2022 21:49:35 +0100 Subject: [PATCH] Unload temperatur sensor module, after usage --- mqtt.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mqtt.lua b/mqtt.lua index 2f69f3d..39b8aa8 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -246,6 +246,8 @@ function startMqttClient() temperatur=nil end ds18b20=nil + ds18b20_diet=nil + package.loaded["ds18b20_diet"]=nil tempCounter = 0 else tempCounter = tempCounter + 1