Smartconfig alternative
Posted: Mon Oct 05, 2015 1:46 pm
Been trying an failing to get the Smartconfig option to work, There does seem to be a simpler alternative. Code your application for STATIONAP mode. In LUA say bring up an AP port. Select this as active based on a GPIO line being held low say. Should work with C and ModeMCU.
wifi.setmode(wifi.STATIONAP)
cfg={}
cfg.ssid="ESP82666"
cfg.pwd="88888888"
wifi.ap.config(cfg)
You can then access the ESP8266 via 192.168.4.1 and set up the SSID and password for the router you want. Reboot without the GPIO line held down to stop the AP port. I assume others have done something similar.
wifi.setmode(wifi.STATIONAP)
cfg={}
cfg.ssid="ESP82666"
cfg.pwd="88888888"
wifi.ap.config(cfg)
You can then access the ESP8266 via 192.168.4.1 and set up the SSID and password for the router you want. Reboot without the GPIO line held down to stop the AP port. I assume others have done something similar.