ot::MeshCoP::BorderAgent::SetId() method
Sets the Border Agent ID. The Border Agent ID will be saved in persistent storage and survive reboots. It's required to set the ID only once after factory reset. If the ID has never been set by calling this method, a random ID will be generated and returned when `GetId()` is called.
Arguments
aId
specifies the Border Agent ID.
Return value
kErrorNone If successfully set the Border Agent ID. ... If failed to set the Border Agent ID.
ot::MeshCoP::BorderAgent::SetId() reads 2 variables and writes 1 variable:
![]()
ot::MeshCoP::BorderAgent::SetId()