openthread_sys

Function otSrpClientSetKeyLeaseInterval

Source
pub unsafe extern "C" fn otSrpClientSetKeyLeaseInterval(
    aInstance: *mut otInstance,
    aInterval: u32,
)
Expand description

Sets the default key lease interval used in SRP update requests.

The default interval is used only for otSrpClientService instances with mKeyLease set to zero.

Changing the lease interval does not impact the accepted lease interval of already registered services/host-info. It only affects any future SRP update messages (i.e., adding new services and/or refreshes of existing services).

@param[in] aInstance A pointer to the OpenThread instance. @param[in] aInterval The key lease interval (in seconds). If zero, the default value specified by OPENTHREAD_CONFIG_SRP_CLIENT_DEFAULT_KEY_LEASE would be used.