SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

libmain: add a compile option to avoid saving wifi params to flash #647

Closed ourairquality closed 6 years ago

ourairquality commented 6 years ago

Add source code for sdk_wifi_param_save_protect() and a compile time, WIFI_PARAM_SAVE, option to skip writing the wifi state to flash. This avoids wear on the flash and does not appear to be necessary when the app initializes the state anyway.

Define WIFI_PARAM_SAVE to 0 for the wificfg example.