module documentation

WiFi utilities for connecting and saving credentials.

Function connect_to_saved_wifi Attempt to connect to the saved WiFi network.
Function load_wifi_password Load the saved WiFi password from storage.
Function load_wifi_settings Load the saved WiFi settings from storage.
Function load_wifi_ssid Load the saved WiFi SSID from storage.
Function save_wifi_password Save the WiFi password to storage.
Function save_wifi_ssid Save the WiFi SSID to storage.
def connect_to_saved_wifi(view_manager) -> bool:

Attempt to connect to the saved WiFi network.

Parameters
view_manager:ViewManagerThe view manager instance for display and storage access.
Returns
boolTrue if connected or connection started, False otherwise.
def load_wifi_password(view_manager) -> str:

Load the saved WiFi password from storage.

Parameters
view_manager:ViewManagerThe view manager instance for display and storage access.
Returns
strThe saved password.
def load_wifi_settings(view_manager) -> dict:

Load the saved WiFi settings from storage.

Parameters
view_manager:ViewManagerThe view manager instance for display and storage access.
Returns
dictThe saved WiFi settings.
def load_wifi_ssid(view_manager) -> str:

Load the saved WiFi SSID from storage.

Parameters
view_manager:ViewManagerThe view manager instance for display and storage access.
Returns
strThe saved SSID.
def save_wifi_password(storage, password: str) -> bool:

Save the WiFi password to storage.

Parameters
storage:StorageThe storage to save to.
password:strThe password to save.
Returns
boolTrue on success.
def save_wifi_ssid(storage, ssid: str) -> bool:

Save the WiFi SSID to storage.

Parameters
storage:StorageThe storage to save to.
ssid:strThe SSID to save.
Returns
boolTrue if the SSID was saved, False if it is empty.