The Network Monitoring API provides functions for getting Wi-Fi general information.
Required Header
#include <inm.h>
Overview
This set of functions is used to get Wi-Fi related information. To use This kind of APIs, You should create a inm handle using inm_initialize(). You should destroy the created inm handle if you do not need it anymore.
Related Features
This API is related with the following features:
- http://tizen.org/feature/network.wifi
- http://tizen.org/feature/network.inm
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.
Typedef Documentation
Called for each found access point.
- Since :
- 5.0
- Parameters:
-
[in] | ap | The access point handle |
[in] | user_data | The user data passed from the request function |
- Returns:
true
to continue with the next iteration of the loop,
otherwise false
to break out of the loop
- Precondition:
- inm_wifi_foreach_found_ap() will invoke this callback.
-
inm_wifi_foreach_found_specific_ap() will invoke this callback.
- See also:
- inm_wifi_foreach_found_ap()
-
inm_wifi_foreach_found_specific_ap()
Enumeration Type Documentation
Enumeration for the wifi scanning state.
- Since :
- 5.0
- Enumerator:
INM_WIFI_SCAN_STATE_NOT_SCANNING |
Scan is not running
|
INM_WIFI_SCAN_STATE_SCANNING |
Scan is in progress
|
Function Documentation
Gets the result of the scan.
- Since :
- 5.0
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/network.get
- Parameters:
-
[in] | inm | The inm handle |
[in] | callback | The callback to be called |
[in] | user_data | The user data passed to the callback function |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
- Postcondition:
- This function invokes inm_wifi_found_ap_cb().
Gets the handle of the connected access point.
- Since :
- 5.0
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/network.get
- Parameters:
-
[in] | inm | The inm handle |
[out] | ap | The access point handle |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Gets the Wi-Fi scan state.
- Since :
- 5.0
- Parameters:
-
[in] | inm | The inm handle |
[in] | state | The Wi-Fi scan state |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Sets the callback called when the scanning state is changed.
- Since :
- 5.0
- Parameters:
-
[in] | inm | The inm handle |
[in] | callback | The callback function to be called |
[in] | user_data | The user data passed to the callback function |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Unsets the callback called when the scanning state is changed.
- Since :
- 5.0
- Parameters:
-
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-