-
I have tried to change the boot behavior of WiFi unsuccessfully by changing the 'wifi_mode ='parameter to WIFI_OFF, however a cold boot still always enables the wifi AP as though the parameter is still WIFI_AP. I set it in this code block unsuccessfully. Is there another place to do it? `typedef struct stored_preference_t stored_preferences;` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Martin The recommended choice is to use the dedicated save the WiFi status only in the Device > Save Config menu called "Save No WiFi (suggested on the field)" This preference is stored in NVM (not volatile memory) and applied at every restart, intended or not (e.g. crash, or reboot required to change some configuration or wake up from sleep). The option to hard code it (not recommended) requires changing the setup function, where the intended status of WiFi is configured during setup time with the
and then activated a few lines afterward
|
Beta Was this translation helpful? Give feedback.
Hi Martin
the status of WiFi is read from stored preferences so changing the default won't affect your device, only a new fresh without a stored configuration.
The recommended choice is to use the dedicated save the WiFi status only in the Device > Save Config menu called "Save No WiFi (suggested on the field)"
This preference is stored in NVM (not volatile memory) and applied at every restart, intended or not (e.g. crash, or reboot required to change some configuration or wake up from sleep).
The option to hard code it (not recommended) requires changing the setup function, where the intended status of WiFi is configured during setup time with the
ReadNVMPreferences
function: