ot::Srp::Client::AddService() method
Adds a service to be registered with server. After a successful call to this method, `Callback` will be called to report the status of the service addition/registration with SRP server.
Arguments
aService
A `Service` to add (the instance must persist and remain unchanged after successful return from this method).
Return value
kErrorNone The addition of service started successfully. The `Callback` will be called to report the status. kErrorAlready A service with the same service and instance names is already in the list. kErrorInvalidArgs The service structure is invalid (e.g., bad service name or `TxEntry`).
ot::Srp::Client::AddService() calls 3 functions:
![]()
ot::Srp::Client::AddService()
ot::Srp::Client::AddService() reads 2 variables:
![]()
ot::Srp::Client::AddService()