Provides APIs for Connectivity Monitoring.
More...
Provides APIs for Connectivity Monitoring.
void dm_cb_register_init |
( |
void |
| ) |
|
int dm_conn_get_address |
( |
char * |
ipAddr | ) |
|
get the ip address of network
#include <dm/dm_connectivity.h>
- Parameters
-
[out] | ipAddr | current ip address. (the form is XXX.XXX.XXX.XXX) |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_get_channel |
( |
int * |
channel | ) |
|
get the channel of network
#include <dm/dm_connectivity.h>
- Parameters
-
[out] | channel | current channel of network. |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_get_interface |
( |
char * |
interface | ) |
|
get the current interface of network
#include <dm/dm_connectivity.h>
- Parameters
-
[out] | interface | current interface of network. (the value is a string) |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_get_rssi |
( |
int * |
rssi | ) |
|
get the rssi of network
#include <dm/dm_connectivity.h>
- Parameters
-
[out] | rssi | current rssi. (the rssi is a negative value) |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_get_tx_power |
( |
int * |
dbm | ) |
|
get the tx power of network
#include <dm/dm_connectivity.h>
- Parameters
-
[out] | dbm | current tx power of network. (the value is between 0 ~ 30 dbm) |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_register_linkdown_cb |
( |
conn_cb |
cb | ) |
|
register link down callback function for connectivity event.
#include <dm/dm_connectivity.h>
- Parameters
-
[in] | cb | A pointer to call when a network link down event occurs. |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_register_linkup_cb |
( |
conn_cb |
cb | ) |
|
register link up callback function for connectivity event.
#include <dm/dm_connectivity.h>
- Parameters
-
[in] | cb | A pointer to call when a network link up event occurs. |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_set_tx_power |
( |
const int * |
dbm | ) |
|
set the tx power of network
#include <dm/dm_connectivity.h>
- Parameters
-
[in] | dbm | the power value to set up. (the value is between 0 ~ 30 dbm) |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_unregister_linkdown_cb |
( |
conn_cb |
cb | ) |
|
unregister link down callback function for connectivity event.
#include <dm/dm_connectivity.h>
- Parameters
-
[in] | cb | A pointer to call when a network link down event occurs. |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0
int dm_conn_unregister_linkup_cb |
( |
conn_cb |
cb | ) |
|
unregister link up callback function for connectivity event.
#include <dm/dm_connectivity.h>
- Parameters
-
[in] | cb | A pointer to call when a network link up event occurs. |
- Returns
- On success, 0 is returned. On failure, a negative value is returned.
- Since
- TizenRT v1.0