ot::MeshCoP::BorderAgent::GetId() method
Gets the randomly generated Border Agent ID. The ID is saved in persistent storage and survives reboots. The typical use case of the ID is to be published in the MeshCoP mDNS service as the `id` TXT value for the client to identify this Border Router/Agent device.
Arguments
aId
Reference to return the Border Agent ID.
Return value
kErrorNone If successfully retrieved the Border Agent ID. ... If failed to retrieve the Border Agent ID.
ot::MeshCoP::BorderAgent::GetId() reads 3 variables and writes 1 variable:
![]()
ot::MeshCoP::BorderAgent::GetId()