wifi-tally_Oostendam/nodemcu-firmware/lua_examples/luaOTA/default.lua

12 lines
322 B
Lua
Raw Permalink Normal View History

2021-09-27 19:52:27 +00:00
-- luacheck: globals DEBUG
return {entry = function(msg)
package.loaded["luaOTA.default"]=nil
local gc=collectgarbage; gc(); gc()
if DEBUG then
for k,v in pairs(_G) do print(k,v) end
for k,v in pairs(debug.getregistry()) do print(k,v) end
end
gc(); gc()
print(msg, node.heap())
end}