But to run the lua script, does it need to be uploaded every time the module is reset?
Or is it saved and rerun after a reboot
I.e can lua be used for a standalone esp8266 or only one with a Microcontroller attached to upload the script?
Explore... Chat... Share...
print('load LoaLoader')
dofile("LuaLoader.lua")
print('load WifiConnect')
dofile('WifiConnect.lua')
tmr.alarm(1,2000, 1, function()
if wifi.sta.getip()==nil then
print(" Wait for IP --> "..wifi.sta.status())
else
print("New IP address is "..wifi.sta.getip())
tmr.stop(1)
print('load DS18B20')
dofile('DS18B20.lua')
end
end)
print('init.lua ready')
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[…]