Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current version of nina-fw does not allow to retrieve the credentials of a working connection. This can be done by storing a backup of the credentials of the last working network into the flash.
2 new options are available:
This patch allows to save the credentials of only one network: whenever the WiFi module connects to a new working network, the backup of this "safe" credentials are overwritten. Then, obviously, if the WiFi to which we are trying to connect is different from the one saved in the backup, the only way to connect to the new WiFi is to provide the right SSID and password.
The second proposed feature introduces a counter for the number of times a reboot is performed. This counter is saved in the flash in a file called "bootcounter.bin". This information can be used to trigger a reset or enable a way to step out from a blocking condition.
The file is created (if it does not already exist) by the ESP. It just contains a number which is read, incremented and written back whenever a reboot is triggered.