nodemcu-tool upload *.lua && nodemcu-tool terminal

This commit is contained in:
cqc
2021-07-24 04:13:10 -05:00
parent 9b342a7f34
commit 5454e0d9e5
3 changed files with 74 additions and 26 deletions

View File

@ -8,5 +8,27 @@ end
tryfile('display.lua')
tryfile('wifi.lua')
function ls() print(sjson.encode(file.list())) end
function reload() tryfile('init.lua') end
function ls() for k,v in pairs(file.list()) do print(k.."\t\tsize: "..v) end end
function rpt_iter(f)
return function ()
return f()
end
end
function cat(f)
if file.open(f) then
local f = file.read()
while f do
print(f)
f = file.read()
end
file.close()
end
end
function help() print("heh") end