zeroday wrote:2AM morning here. continue tomorrow
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32
save this to "myfile.lua"
--myfile.lua
local myfile = {}
function myfile.print(name)
file.open(name)
repeat
local line=file.readline()
if line then line=(string.gsub(line,"\n","")) print(line) end
until not line
file.close()
end
return myfile
use it:
mf=require("myfile")
mf.print("init.lua")
- sends ADC value to a webserver every 3 seconds (need connection to TOUT pin of ESP, not tested myself)
- sends GPIO value to a webserver at every GPIO level change (interrupt at every UP or DOWN flank)
- provides a webpage with some ESP data
Upload the file below to init.lua on the ESP, and reboot the ESP.