ot::MeshCoP::NetworkName::Set() method
Sets the Network Name from a given null terminated C string. Also validates that the given @p aNameString follows UTF-8 encoding and can fit in `kMaxSize` chars.
Arguments
aNameString
A name C string.
Return value
kErrorNone Successfully set the Network Name. kErrorAlready The name is already set to the same string. kErrorInvalidArgs Given name is invalid (too long or does not follow UTF-8 encoding).
![]()
error = Set(data);
ot::MeshCoP::NetworkName::Set() is called by 1 function and calls 6 functions:
![]()
ot::MeshCoP::NetworkName::Set()
ot::MeshCoP::NetworkName::Set() reads 5 variables:
![]()
ot::MeshCoP::NetworkName::Set()