-->
Page 1 of 1

WiFi.begin() vs flash()

PostPosted: Mon Oct 30, 2017 6:39 am
by destroyedlolo
Hello,

I read on the web that the flash is written every WiFi.begin().
But on other page, I read that flash is updated only when ssid and passphrase is different compared to the one already stored.

Can you please tell me which one is right ?

Thanks

Laurent

Re: WiFi.begin() vs flash()

PostPosted: Mon Oct 30, 2017 8:48 am
by schufti
This boardsearch on "wifi.persistent" might help you:

but reading and finding conclusions is entirely up to you

Re: WiFi.begin() vs flash()

PostPosted: Mon Oct 30, 2017 9:10 am
by destroyedlolo
Ok, thanks.

As per this reading : https://github.com/esp8266/Arduino/issues/3641 and corresponding API https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/include/espressif/esp_sta.h it seems to me (well, to me) it is only updated when the configuration is changed.

So I will update my code accordingly.

Thanks

Laurent