Sunday 1 March 2015

esp8266 lua firmware NODEMCU with node.compile() option

This post may soon be obsolete, so take it with a grain of salt.

I just couldn't get NodeMCUs node.compile() feature to work. I thought I had the latest firmware on the module, because that was what I got as "latest" from github.

The latest firmware (at the time of writing) can be found here:

NodeMCU Firmware Download


 NodeMCU 0.9.5 build 20150213 powered by Lua 5.1.4  
 lua: cannot open init.lua  
 >   
 Hard Restart Sonntag, 1. März 2015 23:38:42  
 for k,v in pairs(file.list()) do l = string.format("%-15s",k) print(l.."  "..v.." bytes") end  
 httpserver.lua  3750 bytes  
 dnsserver2.lua  3554 bytes  
 > node.compile('dnsserver2.lua')  
 node.compile('dnsserver2.lua')  
 > for k,v in pairs(file.list()) do l = string.format("%-15s",k) print(l.."  "..v.." bytes") end  
 dnsserver2.lua  3554 bytes  
 httpserver.lua  3750 bytes  
 dnsserver2.lc   2488 bytes  
 >   

Looking good!

No comments:

Post a Comment