pub unsafe extern "C" fn otThreadGetNextDiagnosticTlv(
aMessage: *const otMessage,
aIterator: *mut otNetworkDiagIterator,
aNetworkDiagTlv: *mut otNetworkDiagTlv,
) -> otError
Expand description
Gets the next Network Diagnostic TLV in the message.
Requires OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE
.
@param[in] aMessage A pointer to a message. @param[in,out] aIterator A pointer to the Network Diagnostic iterator context. To get the first Network Diagnostic TLV it should be set to OT_NETWORK_DIAGNOSTIC_ITERATOR_INIT. @param[out] aNetworkDiagTlv A pointer to where the Network Diagnostic TLV information will be placed.
@retval OT_ERROR_NONE Successfully found the next Network Diagnostic TLV. @retval OT_ERROR_NOT_FOUND No subsequent Network Diagnostic TLV exists in the message. @retval OT_ERROR_PARSE Parsing the next Network Diagnostic failed.
@Note A subsequent call to this function is allowed only when current return value is OT_ERROR_NONE.