Developing with ZBOSS for Zigbee
|
Data Structures | |
struct | zb_zdo_callback_info_s |
struct | zb_zdo_default_resp_s |
struct | zb_zdo_get_diag_data_req_params_s |
struct | zb_zdo_get_diag_data_resp_params_s |
Macros | |
#define | ZB_ZDO_INVALID_TSN 0xFFU |
Typedefs | |
typedef struct zb_zdo_callback_info_s | zb_zdo_callback_info_t |
typedef struct zb_zdo_default_resp_s | zb_zdo_default_resp_t |
typedef struct zb_zdo_get_diag_data_req_params_s | zb_zdo_get_diag_data_req_params_t |
typedef struct zb_zdo_get_diag_data_resp_params_s | zb_zdo_get_diag_data_resp_params_t |
Functions | |
void | zb_zdo_get_diag_data (zb_uint16_t short_address, zb_uint8_t *lqi, zb_int8_t *rssi) |
Obtains last known LQI and RSSI values from device with specified short address. More... | |
zb_ret_t | zb_zdo_get_diag_data_async (zb_bufid_t buf, zb_callback_t cb) |
Obtains last known LQI and RSSI values from the device with the specified short address. More... | |
void zb_zdo_get_diag_data | ( | zb_uint16_t | short_address, |
zb_uint8_t * | lqi, | ||
zb_int8_t * | rssi | ||
) |
Obtains last known LQI and RSSI values from device with specified short address.
short_address | - address of device |
lqi | [in] - pointer to zb_uint8_t variable to store lqi value |
rssi | [in] - pointer to zb_uint8_t variable to store rssi value |
Example:
zb_ret_t zb_zdo_get_diag_data_async | ( | zb_bufid_t | buf, |
zb_callback_t | cb | ||
) |
Obtains last known LQI and RSSI values from the device with the specified short address.
buf | - a buffer with request params, see zb_zdo_get_diag_data_req_params_t |
cb | - a user's function to call when the response is ready. See zb_zdo_get_diag_data_resp_params_t for response params description. |
Example: