From 9cd54da7748f9d7804671ed521d442efa0eebf69 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 21 Mar 2021 20:52:27 +0100 Subject: [PATCH] Temperature library can be initialized --- mqtt.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mqtt.lua b/mqtt.lua index 5305493..5efaea3 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -104,6 +104,8 @@ function registerMqtt() mydofile("telnet") if (startTelnetServer ~= nil) then startTelnetServer() + else + print("Cannost start Telnet Server!") end else for i=1,10,1 do @@ -153,8 +155,8 @@ function startMqttClient() if (mqttServer ~= nil and mqttPrefix ~= nil) then registerMqtt() print "Started MQTT client" - if (file.open("ds18b20.lc")) then - t=require("ds18b20") + if (file.open("ds18b20_diet.lua")) then + t=require("ds18b20_diet") t.setup(2) -- GPIO4 readTemp() -- read once, to setup chip print "Setup temperature"