Chat freely about anything...

User avatar
By thefatmoop
#49158 Hi all,

I've been working on a project that uses a microcontroller + esp8266 controlling the ESP with the AT commands and espressif's latest default software.

I've noticed that after powering off/on, the esp8266 auto reconnects to my wifi meaning it knew the access point from the last time i had it on. My concern is that my microcontroller writes this data every time it powers up the esp (quite frequent since it shuts off the esp then sleeps). Do I need to worry about wearing out the eeprom on the esp?

From my understanding there's only one command that should save entered settings, i'm not running it.

Here is a summary of the commands i'm using
"AT+UART_DEF=9600,8,1,0,0\r\n"
"AT+CWMODE=1\r\n"
"AT+CWJAP=\"wifi\",\"password\"\r\n"
"AT+CIPSTART=\"UDP\",\"192.168.1.132\",7020\r\n"
"AT+CIPSEND=5\r\n"
then 5 bytes of data followed by \r\n
User avatar
By schufti
#49161 it is a standard feature from ESP firmware that it stores credentials for the last (5?) successfull WiFi logins.
I don't know if it stores allready known combinations again. To avoid this, you should check for active connection first and only if there is none, provide credentials for the specific network.