Rtos API example
Nanostack Thread lowpower probe implementation. More...
Go to the source code of this file.
Typedefs | |
typedef int( | thread_lowpower_resp_cb )(uint8_t *destination_address, int8_t interface_id, uint8_t *metrics_ptr, uint16_t metrics_len) |
callback function that returns the received metrics | |
Functions | |
int | thread_lowpower_test_probe_send (int8_t interface_id, uint8_t *destination_address, uint8_t *metrics_ptr, uint8_t metrics_len, thread_lowpower_resp_cb response_cb) |
Send lowpower data request for requesting low power metrics. |
Detailed Description
Nanostack Thread lowpower probe implementation.
Responsible for tasks like request link metrics by sending data requests.
Definition in file thread_lowpower_api.h.
Typedef Documentation
typedef int( thread_lowpower_resp_cb)(uint8_t *destination_address, int8_t interface_id, uint8_t *metrics_ptr, uint16_t metrics_len) |
callback function that returns the received metrics
- Parameters:
-
destination_address address to which the lowpower query is sent interface_id interface_id of destination metrics_ptr Pointer to metrics metrics_len Length of metrics_ptr
- Returns:
- metrics_ptr if response received, NULL if no response is received
- metrics_len length of the response received, 0 if NULL response is received
Definition at line 37 of file thread_lowpower_api.h.
Function Documentation
int thread_lowpower_test_probe_send | ( | int8_t | interface_id, |
uint8_t * | destination_address, | ||
uint8_t * | metrics_ptr, | ||
uint8_t | metrics_len, | ||
thread_lowpower_resp_cb | response_cb | ||
) |
Send lowpower data request for requesting low power metrics.
- Parameters:
-
interface_id Interface ID of the Thread network. destination_address destination ll64 address metrics_ptr array of metrics to be measured metrics_len length of the metrics array response_cb callback function called to return values after execution
- Returns:
- 0 if data request successfully initiated.
Generated on Sun Jul 17 2022 08:25:36 by 1.7.2