Tizen RT Public API
v1.1 D4
|
Provides APIs for Wi-Fi Manager. More...
Files | |
file | wifi_manager.h |
Provides APIs for Wi-Fi Manager. | |
Data Structures | |
struct | wifi_manager_scan_info_s |
Keep information of nearby access points as scan results. More... | |
struct | wifi_manager_cb_s |
Include callback functions which are asynchronously called after Wi-Fi Manager APIs are called. More... | |
struct | wifi_manager_info_s |
Keep Wi-Fi Manager information including ip/mac address, ssid, rssi, etc. More... | |
struct | wifi_manager_softap_config_s |
Specify information of soft access point (softAP) such as ssid and channel number. More... | |
struct | wifi_manager_ap_config_s |
Specify which access point (AP) a client connects to. More... | |
Enumerations | |
enum | connect_status_e |
Status of Wi-Fi interface such as connected or disconnected. More... | |
enum | wifi_manager_result_e |
Result types of Wi-Fi Manager APIs such as FAIL, SUCCESS, or INVALID ARGS. More... | |
enum | wifi_manager_mode_e |
Mode of Wi-Fi interface such as station mode or ap mode. More... | |
enum | wifi_manager_scan_result_e |
Result types of nearby access point scanning. More... | |
enum | wifi_manager_ap_auth_type_e { WIFI_MANAGER_AUTH_OPEN, WIFI_MANAGER_AUTH_WEP_SHARED, WIFI_MANAGER_AUTH_WPA_PSK, WIFI_MANAGER_AUTH_WPA2_PSK, WIFI_MANAGER_AUTH_WPA_AND_WPA2_PSK, WIFI_MANAGER_AUTH_UNKNOWN } |
Wi-Fi authentication type such as WPA, WPA2, or WPS. More... | |
enum | wifi_manager_ap_crypto_type_e { WIFI_MANAGER_CRYPTO_NONE, WIFI_MANAGER_CRYPTO_WEP_64, WIFI_MANAGER_CRYPTO_WEP_128, WIFI_MANAGER_CRYPTO_AES, WIFI_MANAGER_CRYPTO_TKIP, WIFI_MANAGER_CRYPTO_TKIP_AND_AES, WIFI_MANAGER_CRYPTO_UNKNOWN } |
Wi-Fi encryption type such as WEP, AES, or TKIP. More... | |
Functions | |
wifi_manager_result_e | wifi_manager_init (wifi_manager_cb_s *wmcb) |
Initialize Wi-Fi Manager including starting Wi-Fi interface. More... | |
wifi_manager_result_e | wifi_manager_deinit (void) |
Deinitialize Wi-Fi Manager including stoping Wi-Fi interface. More... | |
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. More... | |
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. More... | |
wifi_manager_result_e | wifi_manager_connect_ap (wifi_manager_ap_config_s *config) |
Connect to an access point. More... | |
wifi_manager_result_e | wifi_manager_disconnect_ap (void) |
Disconnect from the connected access point. More... | |
wifi_manager_result_e | wifi_manager_scan_ap (void) |
Scan nearby access points. More... | |
Provides APIs for Wi-Fi Manager.
enum connect_status_e |
Status of Wi-Fi interface such as connected or disconnected.
Definition at line 37 of file wifi_manager.h.
Wi-Fi authentication type such as WPA, WPA2, or WPS.
Definition at line 135 of file wifi_manager.h.
Wi-Fi encryption type such as WEP, AES, or TKIP.
Definition at line 147 of file wifi_manager.h.
enum wifi_manager_mode_e |
Mode of Wi-Fi interface such as station mode or ap mode.
Definition at line 66 of file wifi_manager.h.
Result types of Wi-Fi Manager APIs such as FAIL, SUCCESS, or INVALID ARGS.
Definition at line 53 of file wifi_manager.h.
Result types of nearby access point scanning.
Definition at line 79 of file wifi_manager.h.
wifi_manager_result_e wifi_manager_connect_ap | ( | wifi_manager_ap_config_s * | config | ) |
Connect to an access point.
#include <wifi_manager/wifi_manager.h>
[in] | ssid,passphrase,authentication | type, and cryto type of the access point which the wi-fi interface connect to. |
wifi_manager_result_e wifi_manager_deinit | ( | void | ) |
Deinitialize Wi-Fi Manager including stoping Wi-Fi interface.
#include <wifi_manager/wifi_manager.h>
[in] | none |
wifi_manager_result_e wifi_manager_disconnect_ap | ( | void | ) |
Disconnect from the connected access point.
#include <wifi_manager/wifi_manager.h>
[in] | none |
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.
#include <wifi_manager/wifi_manager.h>
[out] | retrieved | information including mode, connection status, ssid, received signal strengh indication, and ip address. |
wifi_manager_result_e wifi_manager_init | ( | wifi_manager_cb_s * | wmcb | ) |
Initialize Wi-Fi Manager including starting Wi-Fi interface.
#include <wifi_manager/wifi_manager.h>
[in] | callback | functions called when wi-fi events happen |
wifi_manager_result_e wifi_manager_scan_ap | ( | void | ) |
Scan nearby access points.
#include <wifi_manager/wifi_manager.h>
[in] | none |
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.
#include <wifi_manager/wifi_manager.h>
[in] | Wi-Fi | mode (station or AP) |
[in] | In | case of AP mode, AP configuration infomation should be given including ssid, channel, and passphrase. |