-->
Page 1 of 2

How to connect ESP8266 on a different wifi router?

PostPosted: Fri Sep 30, 2016 5:41 am
by Syed Niamath
Hi,

I am able to successfully light a bulb remotely via web browser with ESP8266 which is connected to my home wifi router, I thought of taking the esp8266 for giving a demo on my friends house, since the SSID & Password are hardcoded for my router how can I change it so that it picks up my friends wifi to connect. Is there any sample code which needs to be included please guide.

Thanks

Re: How to connect ESP8266 on a different wifi router?

PostPosted: Fri Sep 30, 2016 5:54 am
by reaper7
1. ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino (hardcoded too, but You can use more that one ssid/pass)
2. https://github.com/tzapu/WiFiManager ("interactive" option - You can change via mobile phone for eg.)

Re: How to connect ESP8266 on a different wifi router?

PostPosted: Fri Sep 30, 2016 7:28 am
by Syed Niamath
Thanks for the link will check now.

Re: How to connect ESP8266 on a different wifi router?

PostPosted: Sat Oct 01, 2016 11:45 am
by Syed Niamath
I used the tzapu wifi Manager autoconnect sketch , when I switch off my WiFi Router the ESP gets into AP mode with IP 192.168.4.1 successfully, but when I switch ON my wifi and try to access the IP on a web browser it displayed the usual site cannot be reached. Is that anything I'm missing it?