Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By smarthousesys
#30573 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.
User avatar
By Vs33
#67144 Hello...


Will you please help me how to configure esp8266 to wifi router from app without using smartconfig?

Actually i have tried to configure without using smartconfig in AP+client mode and also device is able to connect wifi router but esp8266 is connect/disconnect to mobile app after esp is connected to wifi router so because of that i am not able to send response to mobile app that esp is connected to wifi router or not.

Thank you.