From: Nathaniel Wesley Filardo Date: Sat, 27 Oct 2018 19:12:51 +0000 (+0100) Subject: Add a UART diagnostic at boot before we panic X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=5d5ca5041d353cf1d9d81e76bb93c746686487f6;p=acmetensortoys-esp-lua_ctfws Add a UART diagnostic at boot before we panic --- 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)