Tizen Native API
|
Functions | |
int | wifi_initialize (void) |
Initializes Wi-Fi. | |
int | wifi_deinitialize (void) |
Deinitializes Wi-Fi. |
The Wi-Fi API provides functions for managing Wi-Fi and monitoring the state of Wi-Fi.
#include <wifi.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 feature related codes in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
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.
int wifi_deinitialize | ( | void | ) |
Deinitializes Wi-Fi.
WIFI_ERROR_NONE | Successful |
WIFI_ERROR_INVALID_OPERATION | Invalid operation |
WIFI_ERROR_OPERATION_FAILED | Operation failed |
WIFI_ERROR_NOT_SUPPORTED | Not supported |
int wifi_initialize | ( | void | ) |
Initializes Wi-Fi.
0
on success, otherwise negative error value WIFI_ERROR_NONE | Successful |
WIFI_ERROR_INVALID_OPERATION | Invalid operation |
WIFI_ERROR_OPERATION_FAILED | Operation failed |
WIFI_ERROR_NOT_SUPPORTED | Not supported |