-->
Page 1 of 1

Uploading LUA Code - Losing it after losing power

PostPosted: Tue Apr 21, 2015 4:02 pm
by Cobozco
Hello,
I'm wondering if there's a way to upload code to the NodeMCU without losing it when unplugging power and being able to take it programmed to wherever it's needed...

I've uploaded the firmware, I can write LUA commands no problem and save lua scripts on "lua uploader v 1.0.2.4 - hari wiguna 2015" my computer. Any easy fix I'm missing - using an ide vs just accessing the com port writing a list of commands? Please help - it's appreciated for my school project

Re: Uploading LUA Code - Losing it after losing power

PostPosted: Wed Apr 22, 2015 1:43 pm
by MeNoGeek
Cobozco wrote:a way to upload code to the NodeMCU without losing it when unplugging power and being able to take it programmed to wherever it's needed...
Just click the 'Save to ESP' button.
If you need a more elaborate IDE, try ESPlorer:
http://esp8266.ru/esplorer/
As with Hari's software, click 'Save to ESP' button to persist file to flash memory. Name file 'init.lua' to have it autorun at startup. 'Send to ESP' executes the code line by line without saving it.
BTW, you posted in the forum. This is the one dealing with NodeMCU:
http://www.esp8266.com/viewforum.php?f=17