openthread_sys

Function otThreadSendDiagnosticGet

Source
pub unsafe extern "C" fn otThreadSendDiagnosticGet(
    aInstance: *mut otInstance,
    aDestination: *const otIp6Address,
    aTlvTypes: *const u8,
    aCount: u8,
    aCallback: otReceiveDiagnosticGetCallback,
    aCallbackContext: *mut c_void,
) -> otError
Expand description

Send a Network Diagnostic Get request.

Requires OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDestination A pointer to destination address. @param[in] aTlvTypes An array of Network Diagnostic TLV types. @param[in] aCount Number of types in aTlvTypes. @param[in] aCallback A pointer to a function that is called when Network Diagnostic Get response is received or NULL to disable the callback. @param[in] aCallbackContext A pointer to application-specific context.

@retval OT_ERROR_NONE Successfully queued the DIAG_GET.req. @retval OT_ERROR_NO_BUFS Insufficient message buffers available to send DIAG_GET.req.