Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Syed Niamath
#55904 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
User avatar
By reaper7
#55905 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.)
User avatar
By Syed Niamath
#55953 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?