Type Alias otBorderAgentMeshCoPServiceChangedCallback

Source
pub type otBorderAgentMeshCoPServiceChangedCallback = Option<unsafe extern "C" fn(aTxtData: *const u8, aLength: u16, aContext: *mut c_void)>;
Expand description

This callback informs the application of the changes in the state of the MeshCoP service.

In specific, the ‘state’ includes the MeshCoP TXT data originated from the Thread network and whether the Border Agent is Active (which can be obtained by otBorderAgentIsActive).

@param[in] aTxtData A pointer to the encoded MeshCoP TXT data originated from the Thread network. @param[in] aLength The length of the encoded TXT data. @param[in] aContext A pointer to application-specific context.

Aliased Type§

enum otBorderAgentMeshCoPServiceChangedCallback {
    None,
    Some(unsafe extern "C" fn(_: *const u8, _: u16, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const u8, _: u16, _: *mut c_void))

Some value of type T.