As the title says... Chat on...

User avatar
By ardhuru
#39634 I have an ESP8266-01 module running an init.lua, which in turn reads from a simple 6 character data file saved on the ESP at startup.

The ESP is running in the soft AP mode.

There are times (not frequently) when I need to change the contents of the data file. Currently, the only way to do this is to connect the ESP to my PC, and upload the new file (I use Esplorer) to the module.

It would be lovely if I could do this OTA. I have been trawling the net for a solution, and did find some pages that initially looked promising. But with my limited knowledge, I have not been able to figure this out yet.

Any suggestions, folks?

Best regards.
User avatar
By ardhuru
#39800 Wow! Precisely the kind of thing I was hoping to come across!

Will certainly make life a lot easier.

Shall eagerly await any announcement from you.

Best Regards.
User avatar
By mbenitez01
#39942 Teorically, it's a piece of cake... all you have to do is build an html page with a few elements in it: a button, a text area and no much more...
when you hit esp IP address, it serves the web page..you must load init.lua content inside text area......
after this, you can edit the text into de the text area...once you are done with editing (remember it was your init.lua)..you hit the submit button and an ad hoc routine gathers text in text area and writes it back , line to line into the init.lua file

teorically, it's that nice and simple....but in practice..it does'nt work so fine...it raises error, hungs up node mcu...... it made some tests myself (couple of hours) , and gave up to other posibilities....
if you have better luck, please advise!