Post your best Lua script examples here

User avatar
By beep
#60034 Hi,
I'm new to this, I've tried the configure via browser method and initially I've also faced the "memory" problem.
I've solved it by first creating an empty config.lua with:
ssid = ""
password = ""

and then after uploading to the ESP8266 I've compiled the file to config.lc and deleted the original.

done the same to the wifi_setup.lua file

in the init.lua file I had to replace the line:
dofile("wifi_setup.lua")
for
dofile("wifi_setup.lc")

This solved the problem and now is working fine!

Regards
Beep
User avatar
By forlotto
#60073 mmiscool espbasic allows configuration via browser if that is your aim there are other things out there as well. But if you want to do LUA don't let me detour you it is pretty interesting.