Tizen Native API
4.0
|
The Wi-Fi API provides functions for managing Wi-Fi and monitoring the state of Wi-Fi.
#include <wifi-manager.h>
Wi-Fi allows your application to connect to a Wireless Local Area Network (WLAN) and to transfer data over the network. The Wi-Fi Manager enables your application to activate and deactivate a local Wi-Fi device, and to connect to a WLAN network in the infrastructure mode.
This API is related with the following features:
It is recommended to design applications with regard to features, for reliability.
You can check if a device supports the related features for this API by using System Information, and control your application's actions accordingly.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Functions | |
int | wifi_manager_initialize (wifi_manager_h *wifi) |
Initializes Wi-Fi. | |
int | wifi_manager_deinitialize (wifi_manager_h wifi) |
Deinitializes Wi-Fi. | |
Typedefs | |
typedef void * | wifi_manager_h |
The Wi-Fi manager handle. |
typedef void* wifi_manager_h |
The Wi-Fi manager handle.
enum wifi_manager_error_e |
Enumeration for the Wi-Fi error type.
int wifi_manager_deinitialize | ( | wifi_manager_h | wifi | ) |
Deinitializes Wi-Fi.
[in] | wifi | The Wi-Fi handle |
WIFI_MANAGER_ERROR_NONE | Successful |
WIFI_MANAGER_ERROR_INVALID_PARAMETER | Invalid parameter |
WIFI_MANAGER_ERROR_INVALID_OPERATION | Invalid operation |
WIFI_MANAGER_ERROR_OPERATION_FAILED | Operation failed |
WIFI_MANAGER_ERROR_NOT_SUPPORTED | Not supported |
int wifi_manager_initialize | ( | wifi_manager_h * | wifi | ) |
Initializes Wi-Fi.
[out] | wifi | The Wi-Fi handle |
0
on success, otherwise negative error value WIFI_MANAGER_ERROR_NONE | Successful |
WIFI_MANAGER_ERROR_ALREADY_INITIALIZED | Already initialized |
WIFI_MANAGER_ERROR_INVALID_PARAMETER | Invalid parameter |
WIFI_MANAGER_ERROR_INVALID_OPERATION | Invalid operation |
WIFI_MANAGER_ERROR_OPERATION_FAILED | Operation failed |
WIFI_MANAGER_ERROR_PERMISSION_DENIED | Permission Denied |
WIFI_MANAGER_ERROR_OUT_OF_MEMORY | Out of memory |
WIFI_MANAGER_ERROR_NOT_SUPPORTED | Not supported |