DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message. (#1062)

* DIAG: Add CLI support for Diagnostic DIAG_GET.rsp message.
This commit is contained in:
Łukasz Duda
2016-12-13 10:22:57 -08:00
committed by Jonathan Hui
parent df6da01f68
commit dbc1384db2
6 changed files with 92 additions and 5 deletions
+23
View File
@@ -1894,6 +1894,29 @@ OTAPI ThreadError OTCALL otGetParentInfo(otInstance *aInstance, otRouterInfo *aP
*/
OTAPI uint8_t OTCALL otGetStableNetworkDataVersion(otInstance *aInstance);
/**
* This function pointer is called when an DIAG_GET.rsp is received.
*
* @param[in] aMessage A pointer to the message buffer containing the received DIAG_GET.rsp payload.
* @param[in] aMessageInfo A pointer to the message info for @p aMessage.
* @param[in] aContext A pointer to application-specific context.
*
*/
typedef void (*otReceiveDiagnosticGetCallback)(otMessage aMessage, const otMessageInfo *aMessageInfo,
void *aContext);
/**
* This function registers a callback to provide received raw DIAG_GET.rsp payload.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aCallback A pointer to a function that is called when an DIAG_GET.rsp is received or
* NULL to disable the callback.
* @param[in] aCallbackContext A pointer to application-specific context.
*
*/
void otSetReceiveDiagnosticGetCallback(otInstance *aInstance, otReceiveDiagnosticGetCallback aCallback,
void *aCallbackContext);
/**
* Send a Network Diagnostic Get request
*