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

User avatar
By jankop
#4039 Because I do not know how to work with the SDK, LUA is my only salvation. I have a question. It depends on, what is in ESP8266 firmware (902 or 903) before installing LUA interpreter? Functions blocks of memory is not yet entirely clear for me. Which blocks do I overwrite and which not overwrite?
User avatar
By gerardwr
#4044 Not sure if I understand your question completely.

You can install the Lua firmware by only uploading the .bin. I use:
Code: Select allsudo ./esptool.py --port /dev/cu.usbserial-A4004QZw write_flash 0x00000 nodemcu_512k.bin


This will overwrite the firmware that is in the ESP. Wifi credentials for connecting to AP are not changed by the firmware upload.

After reboot, the ESP should report:
Code: Select allNodeMcu 0.9.2 build 20141202  powered by Lua 5.1.4


The nodeMcu environment is stable and a good basis for further development. Here's a topic with a webserver written in Lua that works nicely.
http://www.esp8266.com/viewtopic.php?f=19&t=702
User avatar
By jankop
#4046 I was not sure if LUA interpreter does not use any part of the previous original firmware.
Otherwise, linked server I managed to run last night. It's perfect. Thank you for your feedback.