Initialization
Functions for setting up WiFi in Station or Access Point mode.
Functions
wb_wifi_init_ap
Initialize WiFi in Access Point (AP) mode.
void wb_wifi_init_ap(char *ap_ssid, char *ap_password)
Parameters:
- ap_ssid (
char *): Pointer to the SSID string for the Access Point. Must be a null-terminated string. - ap_password (
char *): Pointer to the password string for the Access Point. Must be a null-terminated string.
Returns:
void
Configures the WiFi module to operate as an Access Point, allowing other devices to connect to it using the provided SSID and password.
Note: Ensure that the WiFi module is properly initialized before calling this function.
Note: The SSID and password strings must remain valid until the function returns.
wb_wifi_init_sta
Initialize WiFi station mode with SSID and password.
void wb_wifi_init_sta(char *sta_ssid, char *sta_password)
Parameters:
- sta_ssid (
char *): Pointer to null-terminated string containing the SSID of the WiFi network to connect to - sta_password (
char *): Pointer to null-terminated string containing the password for the WiFi network
Returns:
void
Initializes the WiFi interface in station (client) mode and connects to the specified WiFi network using the provided SSID and password.
Note: Ensure that WiFi is initialized before calling this function
Note: The SSID and password strings must remain valid during the function execution
