31 #ifndef DM_CONNECTIVITY_H_ 32 #define DM_CONNECTIVITY_H_ 40 #define dmdbg(format, ...) printf("DM_API (%s): " format, __FUNCTION__, ##__VA_ARGS__) 42 #define dmdbg(a, ...) (void)0 45 typedef void (*conn_cb)(void);
int dm_conn_get_channel(int *channel)
get the channel of network
int dm_conn_get_tx_power(int *dbm)
get the tx power of network
int dm_conn_get_interface(char *interface)
get the current interface of network
int dm_conn_set_tx_power(const int *dbm)
set the tx power of network
int dm_conn_get_rssi(int *rssi)
get the rssi of network
int dm_conn_unregister_linkdown_cb(conn_cb cb)
unregister link down callback function for connectivity event.
int dm_conn_unregister_linkup_cb(conn_cb cb)
unregister link up callback function for connectivity event.
int dm_conn_register_linkup_cb(conn_cb cb)
register link up callback function for connectivity event.
int dm_conn_get_address(char *ipAddr)
get the ip address of network
int dm_conn_register_linkdown_cb(conn_cb cb)
register link down callback function for connectivity event.