|
Tizen Native API
10.0
|
The Access Point API provides functions for managing the Access Point.
Required Header
#include <wifi-manager.h>
Overview
The Access Point API offers functionalities for managing the Access Point. You need to create the ap handle for using the functions. You can use Wi-Fi information with the handle.
Related Features
This API is related with the following features:
- http://tizen.org/feature/network.wifi
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_ap_create (wifi_manager_h wifi, const char *essid, wifi_manager_ap_h *ap) |
| Creates the access point handle. | |
| int | wifi_manager_ap_hidden_create (wifi_manager_h wifi, const char *essid, wifi_manager_ap_h *ap) |
| Creates the hidden access point handle. | |
| int | wifi_manager_ap_destroy (wifi_manager_ap_h ap) |
| Destroys the access point handle. | |
| int | wifi_manager_ap_clone (wifi_manager_ap_h *cloned_ap, wifi_manager_ap_h origin) |
| Clones the access point handle. | |
| int | wifi_manager_ap_refresh (wifi_manager_ap_h ap) |
| Refreshes the access point information. | |
Typedefs | |
| typedef void * | wifi_manager_ap_h |
| The Wi-Fi access point handle. | |
Typedef Documentation
| typedef void* wifi_manager_ap_h |
The Wi-Fi access point handle.
- Since :
- 3.0
Function Documentation
| int wifi_manager_ap_clone | ( | wifi_manager_ap_h * | cloned_ap, |
| wifi_manager_ap_h | origin | ||
| ) |
Clones the access point handle.
This function creates a new access point handle that is a copy of the given access point handle. The cloned access point handle contains the same information as the original handle, allowing you to work with the same access point data without modifying the original handle.
- Since :
- 3.0
- Remarks:
- You must release cloned_ap using wifi_manager_ap_destroy().
- Parameters:
-
[out] cloned_ap The cloned access point handle [in] origin The origin access point handle
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
WIFI_MANAGER_ERROR_NONE Successful WIFI_MANAGER_ERROR_NOT_INITIALIZED Not initialized WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter WIFI_MANAGER_ERROR_OUT_OF_MEMORY Out of memory WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- See also:
- wifi_manager_ap_destroy()
| int wifi_manager_ap_create | ( | wifi_manager_h | wifi, |
| const char * | essid, | ||
| wifi_manager_ap_h * | ap | ||
| ) |
Creates the access point handle.
This function creates a new access point handle for a visible wireless network. The ESSID (Extended Service Set Identifier) should be provided as a null-terminated string and can be encoded in UTF-8. The created access point handle can be used to connect to the specified wireless network using the Wi-Fi handle.
- Since :
- 3.0
- Remarks:
- You must release ap using wifi_manager_ap_destroy().
- Parameters:
-
[in] wifi The Wi-Fi handle [in] essid The ESSID (Extended Service Set Identifier) should be null-terminated and can be UTF-8 encoded [out] ap The access point handle
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
WIFI_MANAGER_ERROR_NONE Successful WIFI_MANAGER_ERROR_NOT_INITIALIZED Not initialized WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter WIFI_MANAGER_ERROR_OUT_OF_MEMORY Out of memory WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- See also:
- wifi_manager_ap_destroy()
| int wifi_manager_ap_destroy | ( | wifi_manager_ap_h | ap | ) |
Destroys the access point handle.
This function releases all resources allocated for the given access point handle. After calling this function, the access point handle becomes invalid and cannot be used for any further operations.
- Since :
- 3.0
- Parameters:
-
[in] ap The access point handle
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
WIFI_MANAGER_ERROR_NONE Successful WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- See also:
- wifi_manager_ap_create()
| int wifi_manager_ap_hidden_create | ( | wifi_manager_h | wifi, |
| const char * | essid, | ||
| wifi_manager_ap_h * | ap | ||
| ) |
Creates the hidden access point handle.
This function creates a new access point handle for a hidden wireless network. Hidden networks do not broadcast their SSID (Service Set Identifier), so you need to provide the ESSID (Extended Service Set Identifier) explicitly when creating the access point handle. The ESSID should be a null-terminated string and can be encoded in UTF-8.
- Since :
- 3.0
- Remarks:
- You must release ap using wifi_manager_ap_destroy().
- Parameters:
-
[in] wifi The Wi-Fi handle [in] essid The ESSID (Extended Service Set Identifier) should be null-terminated and can be UTF-8 encoded [out] ap The access point handle
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
WIFI_MANAGER_ERROR_NONE Successful WIFI_MANAGER_ERROR_NOT_INITIALIZED Not initialized WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter WIFI_MANAGER_ERROR_OUT_OF_MEMORY Out of memory WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported
- See also:
- wifi_manager_ap_destroy()
| int wifi_manager_ap_refresh | ( | wifi_manager_ap_h | ap | ) |
Refreshes the access point information.
This function refreshes the access point information. Access point information can change over time due to various factors such as changes in the environment, network configuration updates, or other network events. By calling this function, you ensure that the latest information about the access point is retrieved and stored in the given access point handle.
- Since :
- 3.0
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/network.get
- Remarks:
- You should call this function in order to get the current access point information, because the information can be changed.
- Parameters:
-
[in] ap The access point handle
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
WIFI_MANAGER_ERROR_NONE Successful WIFI_MANAGER_ERROR_NOT_INITIALIZED Not initialized WIFI_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter WIFI_MANAGER_ERROR_OPERATION_FAILED Operation failed WIFI_MANAGER_ERROR_OUT_OF_MEMORY Out of memory WIFI_MANAGER_ERROR_PERMISSION_DENIED Permission Denied WIFI_MANAGER_ERROR_NOT_SUPPORTED Not supported