I have a problem about nodemcu board
I wrote a script and executed on board but when I turn off the board and again turn it on the program has been deleted
what can I do? I don't want use avr to send commands or eeprom external memory
Thanks
Explore... Chat... Share...
tmr.alarm(1,2000,0, function() dofile "myapp.Lua" end)local function init()
local pin = 1 -- GPIO5, whatever
gpio.mode (pin, gpio.INPUT, gpio.PULLUP)
if 0 == gpio.read (pin) then dofile ("myapp.lua") end
end
init()local pin = 1 -- GPIO5, whatever
gpio.mode (pin, gpio.INPUT, gpio.PULLUP)
if gpio.read (pin) > 0 then file.rename ("init.lua", "i.lua") end
-- rest of init.lua or dofile ("myapp.Lua")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[…]