From 5d5ca5041d353cf1d9d81e76bb93c746686487f6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 27 Oct 2018 20:12:51 +0100 Subject: [PATCH] Add a UART diagnostic at boot before we panic --- init3.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init3.lua b/init3.lua index 62c6308..de0f5a1 100644 --- a/init3.lua +++ b/init3.lua @@ -21,6 +21,9 @@ ctfws_lcd:drawFlagsMessage("BOOT...") -- MQTT plumbing mqc, mqttUser = OVL.nwfmqtt().mkclient("nwfmqtt.conf") +if mqc == nil then + print("You forgot your MQTT configuration file") +end local mqttBootTopic = string.format("ctfws/dev/%s/beat",mqttUser) mqc:lwt(mqttBootTopic,"dead",1,1) -- 2.50.1