pub unsafe extern "C" fn otBorderAgentGetMeshCoPServiceTxtData(
aInstance: *mut otInstance,
aTxtData: *mut otBorderAgentMeshCoPServiceTxtData,
) -> otError
Expand description
Gets the MeshCoP service TXT data.
The generated TXT data includes a subset of keys (depending on the device’s current state and whether features are
enabled) as specified in the documentation of the OT_BORDER_AGENT_MESHCOP_SERVICE_TXT_DATA_MAX_LENGTH
constant.
Notably, if OPENTHREAD_CONFIG_BORDER_AGENT_MESHCOP_SERVICE_ENABLE
is enabled and otBorderAgentSetVendorTxtData()
was used to set extra vendor-specific TXT data bytes, those vendor-specified TXT data bytes are NOT included in the
TXT data returned by this function.
@param[in] aInstance A pointer to an OpenThread instance. @param[out] aTxtData A pointer to a MeshCoP Service TXT data struct to get the data.
@retval OT_ERROR_NONE If successfully retrieved the Border Agent MeshCoP Service TXT data. @retval OT_ERROR_NO_BUFS If the buffer in @p aTxtData doesn’t have enough size.