tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
666 stars 219 forks source link

Added check before flashing to reduce wear #4

Closed FredrikFornstad closed 5 years ago

FredrikFornstad commented 6 years ago

Issue: When configuration has been saved to flash and esp32 reboot, it will read flash configuration and when it connects to the WiFi station it will save the configuration to flash again even though there have been no Changes.

Proposed solution: This commit add a check if the content of the flash is identical to the current configuration. In such case, it will skip Writing to the flash.

There are other ways of solving the issue, so it is up to you what to do.

tonyp7 commented 5 years ago

no longer needed with the release 2.0!