ot::Srp::Client::SetServiceKeyRecordEnabled() method
Enables/disables "service key record inclusion" mode. When enabled, SRP client will include KEY record in Service Description Instructions in the SRP update messages that it sends.
Syntax
void SetServiceKeyRecordEnabled(bool aEnabled); Arguments
aEnabled
TRUE to enable, FALSE to disable the "service key record inclusion" mode.
Notes
KEY record is optional in Service Description Instruction (it is required and always included in the Host Description Instruction). The default behavior of SRP client is to not include it. This method is added under `REFERENCE_DEVICE` config and is intended to override the default behavior for testing only.
ot::Srp::Client::SetServiceKeyRecordEnabled() writes 1 variable:
![]()
ot::Srp::Client::SetServiceKeyRecordEnabled()