B4R Question Factory Reset ESP8266

daveinhull

Active Member
Licensed User
Longtime User
Hi,

I'm wondering how you wold deal with an ESP8266 whereyou'd forgotten its IP addrss after setting it from its default address.
I understand that the default address for an ESP8266 is 192.168.4.1.
Erel provided some sample code to allow you to connect to it and then change it;s SSID and to get a new IP address which is then stored in eeprom.
If I want to move the device to another SSID or even if I've forgot the details and changed my SSID in the meatime, how would Iget back to its original state so I can then set it again?

What would be the best way? Or have I missed something here?

Thanks
Dave
 

daveinhull

Active Member
Licensed User
Longtime User
Hi,

OK, I think I've got it.
So when you want to go back to its default IP address, you just start it as an access point and it uses 192.168.4.1.
Then when you've got the SSID you want you start it as WIFI using Connect2

If I've missed somethng please let me know

Thanks
Dave
 
Upvote 0

daveinhull

Active Member
Licensed User
Longtime User
Hi (sorry)

Ok so I did miss something.
If I connect as an access point it appears I can also connect as a normal wifi connection.
I'm using Erel sample code.
It first comes up with connected as 192.168.4.1 and I set it to my router SSID and it gets an IP address on my router subnet 192.168.1.177.
If I look at the available SSIDs, ESP is still there and I can connect to it

Is this correct?

Dave
 
Upvote 0
Top