Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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_metrics_management_request_send (int8_t interface_id, uint8_t *address, uint8_t series_id, uint8_t series_flags, uint16_t timeout, uint8_t *metrics_ptr, uint8_t metrics_len, thread_lowpower_resp_cb response_cb) |
Send lowpower data request for requesting low power metrics. | |
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) |
DEPRECATED 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 52 of file thread_lowpower_api.h.
Function Documentation
int thread_lowpower_metrics_management_request_send | ( | int8_t | interface_id, |
uint8_t * | address, | ||
uint8_t | series_id, | ||
uint8_t | series_flags, | ||
uint16_t | timeout, | ||
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. address destination ll64 address series_id id of the query or series id series_flags query type 0 for single probe timeout Timeout for the query 0 for single probe 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.
Definition at line 47 of file thread_lowpower_private_api.c.
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 | ||
) |
DEPRECATED Send lowpower data request for requesting low power metrics.
use thread_lowpower_metrics_management_request_send instead
- 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.
Definition at line 39 of file thread_lowpower_private_api.c.
Generated on Tue Jul 12 2022 18:18:59 by
