31 #ifndef WIFI_MANAGER_H 32 #define WIFI_MANAGER_H 54 WIFI_MANAGER_FAIL = -1,
56 WIFI_MANAGER_INVALID_ARGS,
57 WIFI_MANAGER_INITIALIZED,
58 WIFI_MANAGER_DEINITIALIZED,
102 void (*sta_connected)(void);
103 void (*sta_disconnected)(void);
104 void (*softap_sta_joined)(void);
105 void (*softap_sta_left)(void);
113 char ip4_address[18];
wifi_manager_result_e wifi_manager_get_info(wifi_manager_info_s *info)
Retrieve current status of Wi-Fi interface including mode, connection status, ssid, received signal strengh indication, and ip address.
wifi_manager_result_e wifi_manager_deinit(void)
Deinitialize Wi-Fi Manager including stoping Wi-Fi interface.
wifi_manager_result_e wifi_manager_init(wifi_manager_cb_s *wmcb)
Initialize Wi-Fi Manager including starting Wi-Fi interface.
wifi_manager_ap_crypto_type_e ap_crypto_type
wifi_manager_mode_e
Mode of Wi-Fi interface such as station mode or ap mode.
wifi_manager_result_e wifi_manager_connect_ap(wifi_manager_ap_config_s *config)
Connect to an access point.
wifi_manager_ap_auth_type_e ap_auth_type
wifi_manager_result_e wifi_manager_disconnect_ap(void)
Disconnect from the connected access point.
wifi_manager_result_e wifi_manager_scan_ap(void)
Scan nearby access points.
wifi_manager_result_e
Result types of Wi-Fi Manager APIs such as FAIL, SUCCESS, or INVALID ARGS.
Specify information of soft access point (softAP) such as ssid and channel number.
Keep information of nearby access points as scan results.
Include callback functions which are asynchronously called after Wi-Fi Manager APIs are called...
wifi_manager_scan_result_e
Result types of nearby access point scanning.
wifi_manager_ap_crypto_type_e
Wi-Fi encryption type such as WEP, AES, or TKIP.
wifi_manager_ap_auth_type_e
Wi-Fi authentication type such as WPA, WPA2, or WPS.
Specify which access point (AP) a client connects to.
connect_status_e
Status of Wi-Fi interface such as connected or disconnected.
unsigned int passphrase_length
wifi_manager_result_e wifi_manager_set_mode(wifi_manager_mode_e mode, wifi_manager_softap_config_s *config)
Change the Wi-Fi mode to station or AP.
Keep Wi-Fi Manager information including ip/mac address, ssid, rssi, etc.