openthread_sys

Function otSrpClientSetServiceKeyRecordEnabled

Source
pub unsafe extern "C" fn otSrpClientSetServiceKeyRecordEnabled(
    aInstance: *mut otInstance,
    aEnabled: bool,
)
Expand description

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.

Is available when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE configuration is enabled.

@note 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 function is intended to override the default behavior for testing only.

@param[in] aInstance A pointer to the OpenThread instance. @param[in] aEnabled TRUE to enable, FALSE to disable the “service key record inclusion” mode.