"JB# %2d/%2d :",
"R", "Y"
-local init3load =
+local mainload =
"flg_tmr", "lastMsgTime", "mqttUser", "msg_tmr", "fla_tmr",
"dprint", "mqc", "publish",
"nwfmqtt.conf",
lcd = OVL.lcd1602()(ctfwshw.lcd or 0x27)
-- give the LCD time to initialize properly
-tmr.create():alarm(125, tmr.ALARM_SINGLE, function() print("INIT2", "go3") OVL.init3() end)
+tmr.create():alarm(125, tmr.ALARM_SINGLE, function() print("INIT2", "go3") OVL.main() end)
-- logging for debugging
--- dprint = function(...) end -- OFF
-dprint = function(...) print(...) end -- ON
+-- local dprint = function(...) end -- OFF
+local dprint = function(...) print(...) end -- ON
-- common module initialization
cron.schedule("*/5 * * * *", function(e) OVL["nwfnet-sntp"]().dosntp(nil) end)
pushsrc() {
dopushlua ctfws.lua
dopushlua ctfws-lcd.lua
- dopushlua init3.lua
+ dopushlua main.lua
dopushcompile init2.lua
}