From c73478d86e1cb61f5156aab098d753842e272387 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sat, 23 Jan 2021 16:44:16 +0100 Subject: [PATCH] Telnet server can be activated via MQTT --- main.lua | 1 - mqtt.lua | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 014bf44..d08dfed 100644 --- a/main.lua +++ b/main.lua @@ -177,7 +177,6 @@ function normalOperation() startTelnetServer() else displayTime() - print("NO Telent found") end setupCounter=setupCounter-1 else diff --git a/mqtt.lua b/mqtt.lua index ad82d94..016215e 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -79,7 +79,9 @@ function registerMqtt() stopWordclock() collectgarbage() mydofile("telnet") - startTelnetServer() + if (startTelnetServer ~= nil) then + startTelnetServer() + end elseif (string.match(topic, "row1$")) then row1bgColor = parseBgColor(data, "row1") end