pub unsafe extern "C" fn otBorderAgentSetMeshCoPServiceChangedCallback(
aInstance: *mut otInstance,
aCallback: otBorderAgentMeshCoPServiceChangedCallback,
aContext: *mut c_void,
)
Expand description
Sets the callback function used by the Border Agent to notify of any changes to the state of the MeshCoP service.
The callback is invoked when the ‘Is Active’ state of the Border Agent or the MeshCoP service TXT data values change. For example, it is invoked when the network name or the extended PAN ID changes and passes the updated encoded TXT data to the application layer.
This callback is invoked once right after this API is called to provide initial states of the MeshCoP service.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aCallback The callback to be invoked when there are any changes of the MeshCoP service. @param[in] aContext A pointer to application-specific context.