-->
Page 1 of 2

Need Lua Code equivalent to WifiManger library

PostPosted: Tue Jan 12, 2016 3:33 pm
by Prithwiraj Bose
I found this https://github.com/tzapu/WiFiManager which is quite impressive, in terms of what it does.
I exactly need this feature, but runnable on LUA firmware. Could someone please help me to write this LUA code?

1. Connect to Wifi AP using the already saved AP details in STATION mode.
2. If connection fails switch to SOFT_AP mode and display a list of available Wifi Access points as output of a webserver, hosted on the ESP AP Gateway.
3. When user chooses one of the AP from the displayed Dropdown list, make another server call, which would store the AP details in file and connect to the selected Wifi. Saved file will be used when next time ESP8266 starts up.
4. When running on STANDALONE mode, host a web server to control the 2 GPIO pins.

Do you think viewtopic.php?f=19&t=5466 is same as what I am asking?

Re: Need Lua Code equivalent to WifiManger library

PostPosted: Thu Aug 16, 2018 2:24 pm
by Gustavo Nobrega
Hi!

I wrote one here: https://github.com/gfnord/lua_wifimanager

Please, could you test it and give me some feedback?

Thanks!

Prithwiraj Bose wrote:I found this https://github.com/tzapu/WiFiManager which is quite impressive, in terms of what it does.
I exactly need this feature, but runnable on LUA firmware. Could someone please help me to write this LUA code?

1. Connect to Wifi AP using the already saved AP details in STATION mode.
2. If connection fails switch to SOFT_AP mode and display a list of available Wifi Access points as output of a webserver, hosted on the ESP AP Gateway.
3. When user chooses one of the AP from the displayed Dropdown list, make another server call, which would store the AP details in file and connect to the selected Wifi. Saved file will be used when next time ESP8266 starts up.
4. When running on STANDALONE mode, host a web server to control the 2 GPIO pins.

Do you think http://www.esp8266.com/viewtopic.php?f=19&t=5466 is same as what I am asking?

Re: Need Lua Code equivalent to WifiManger library

PostPosted: Sat Aug 18, 2018 9:36 pm
by Gustavo Nobrega
Hi, I created one.

Please fell free to try it.

https://github.com/gfnord/lua_wifimanager

Re: Need Lua Code equivalent to WifiManger library

PostPosted: Wed Aug 22, 2018 4:23 am
by marcelstoer
Gustavo Nobrega wrote:https://github.com/gfnord/lua_wifimanager


What extra feature does this one offer that the firmware module "enduser setup" doesn't already have: https://nodemcu.readthedocs.io/en/lates ... ser-setup/ ?