mqttbutton/init.lua

13 lines
305 B
Lua

-- vim: set sw=4 ts=4 sts=4 et :
function main()
dofile("config.lua")
dofile("mqttbutton.lua")
mqttbutton_main()
end
-- Wait 1 second before starting. If there is a bug that crashes the
-- microcontroller, this hopefully gives enough time to delete the program.
tmr.alarm(0, 1000, 0, main)