fx=function() print("Mem free: "..tostring(node.heap()) ) end
s=string.dump(fx)
print(#s)
204 byte
M.setapi=function (tab,callb) M.apifunc=callb end
144 byte
Not bad, but you should count bytes!
Forth? Who can port Forth to this chip ?..
Explore... Chat... Share...
fx=function() print("Mem free: "..tostring(node.heap()) ) end
s=string.dump(fx)
print(#s)
M.setapi=function (tab,callb) M.apifunc=callb end
NodeMCU 0.9.5 build 20150118 powered by Lua 5.1.4
> for n,s in pairs(file.list()) do print(n.." size: "..s) end
log.txt size: 17
index.html size: 230
lhttpd.lua size: 3020
index.pht size: 848
> dofile("lhttpd.lua")
lhttpd.lua:1: unexpected symbol near '?'
ozayturay wrote:Using ESPlorer v0.1 build 206 on a ESP03 module I'm getting unexpected symbol error. The only modification i made is renaming init.lua file to lhttpd.luaCode: Select allNodeMCU 0.9.5 build 20150118 powered by Lua 5.1.4
> for n,s in pairs(file.list()) do print(n.." size: "..s) end
log.txt size: 17
index.html size: 230
lhttpd.lua size: 3020
index.pht size: 848
> dofile("lhttpd.lua")
lhttpd.lua:1: unexpected symbol near '?'
Any ideas?
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]