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.

Required Header

#include <wifi.h>

Overview

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.

Related Features

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 List.


Function Documentation

int wifi_deinitialize ( void  )

Deinitializes Wi-Fi.

Since :
2.3
Returns:
0 on success, otherwise negative error value
Return values:
WIFI_ERROR_NONESuccessful
WIFI_ERROR_INVALID_OPERATIONInvalid operation
WIFI_ERROR_OPERATION_FAILEDOperation failed
WIFI_ERROR_NOT_SUPPORTEDNot supported
int wifi_initialize ( void  )

Initializes Wi-Fi.

Since :
2.3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/network.get
Returns:
0 on success, otherwise negative error value
Return values:
WIFI_ERROR_NONESuccessful
WIFI_ERROR_INVALID_OPERATIONInvalid operation
WIFI_ERROR_OPERATION_FAILEDOperation failed
WIFI_ERROR_NOT_SUPPORTEDNot supported