Skip to content

Instantly share code, notes, and snippets.

@enaon
enaon / init.lua
Last active August 14, 2017 23:20
Nodemcu file upload over ip.
--init
--node.setcpufreq(node.CPU80MHZ) -- 'node.CPU80MHZ|node.CPU160MHZ'
boot_status=file.exists("boot_status.lua")
node_version="driot"
--for m_srv.lua and init_var_xxx.lua
m={}
pl=""
--check if boot_status exists
function normal()
print("boot status set to normal")