I was trying to clear the eeprom after which when i reset the ESP chip, the eeprom is cleared, but the ESP still connects to the previous WiFi. Something like this :
Output
Startup
Reading EEPROM ssid
SSID:
Reading EEPROM pass
PASS:
Waiting for Wifi to connect
66666666666663
WiFi connected
192.168.0.4
192.168.4.1
mDNS responder started
Server started
I think the Arduino ESP8266 library reserve a space in the flash for previous ssid and password. You can just incorporate these functionality to your application.
I was trying to clear the eeprom after which when i reset the ESP chip, the eeprom is cleared, but the ESP still connects to the previous WiFi. Something like this :
Output
What might be the reason ?