Closed
Description
Documentation at http://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/generic-class.html says
Setting persistent to false will get SSID / password written to flash only if currently used values do not match what is already stored in flash.
But the code does something different:
Arduino/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
Lines 136 to 151 in 35d5fab
It writes settings to flash if they don't match the values in flash if persistent is set to true. If it is false it will not write to flash independent of the current value in flash.