- Fri Apr 10, 2015 7:02 am
#14098
When I click the reload button (after my attempt to load any *.lua file) it states:
Total : 68021 bytes
Used : 0 bytes
Remain: 68021 bytes
So I know that the files are not going to the ESP.
I've tried several ESP8266 boards (all flashed to: NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4)
The loading process gets to about 22% and the lights stop blinking on the ESP and the load process has a 'timeout'
Uploading to ESP file init.lua...Waiting answer from ESP - Timeout reached. Command aborted.ü!¤<1ä)Mô1ä)]†1¤ñø
Note that I can upload a lua script to the ESP is ESPLorer if I open it and (in the left window) Right click on the source and select "Send to ESP". The lau file works correctly on the ESP.
The problem is that this appears to upload the script to RAM only.
I attempted loading a lua file by way of a program called lau uploader with the same problem of files not loading.
It looks like I am not allowed to open files on the ESP, as it states: "Open a file first" for each line that is sent in.
> file.writeline('print(wifi.sta.getip())')
stdin:1: open a file first
> file.writeline('led1 = 3')
stdin:1: open a file first
> file.writeline('led2 = 4')
stdin:1: open a file first
> file.writeline('gpio.mode(led1, gpio.OUTPUT)')
stdin:1: open a file first
Note: I am using 9600 baud rate (maybe this is an issue)