Quantcast
Channel: ESP8266 Community Forum
Viewing all articles
Browse latest Browse all 18

Arduino • Re: ESP8266 WiFi Credentials auto saved to flash (ESP8266WiF

$
0
0
fabianoriccardi wrote:
What if I simply call WiFi.begin("myssid", "mypass", channel, bssid) at the begin of my sketch? Will these values be written on flash at every boot even if they do not change?

EDIT: never mind, I did few tests, it seems to overwrite the WiFi configuration everytime I call it, so I switched to WiFi.begin() which reuses the old credential without overwriting them.


Hey Fabian, would you be able to expand a little on how you determined the 4 arg .begin was overwriting the station_config every time it was called? This might be important for sketches that still call any of the begin overrides, besides .begin(void).

Statistics: Posted by Dario_esp — Wed Dec 14, 2022 11:45 pm



Viewing all articles
Browse latest Browse all 18

Trending Articles