1. I have almost the same problem of @kfricke with my applications. Frequent reboots and frequent wifi connections that will lead to flash consumption (I wasn't even fully aware of that!)
2. I voted for the change and also to change documentation to warn the users they can damage the device with the default persistent behaviour of the network API.
3. I understand the maintainers' point of view and do not want to push them in a hell of a maintenance storm.
I just cannot get why adding two more API like in the following excerpt is not a viable solution:
Code: Select all
sta_if = network.WLAN(network.STA_IF)
if not sta_if.isconnected():
sta_if.active_current(True) # do not save in Flash
sta_if.connect_current(ssid, pwd)
In my case that would solve my problem at the cost of changing a couple of lines of application code.
At the same time I would document the new API and warn the users of the potential damage of the default implementation.
What am I missing here?
Disclaimer: I understand perfectly the pressure of the maintainers to stick to the KS project goals and not being diverted from priorities. So please consider my post only a way to better understand this issue. Thanks