Function openthread_sys::otThreadSetPskcRef

source ยท
pub unsafe extern "C" fn otThreadSetPskcRef(
    aInstance: *mut otInstance,
    aKeyRef: otPskcRef,
) -> otError
Expand description

Set the Key Reference to the Thread PSKc

Requires the build-time feature OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE to be enabled.

Will only succeed when Thread protocols are disabled. Upon success, this will also invalidate the Active and Pending Operational Datasets in non-volatile memory.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aKeyRef Key Reference to the new Thread PSKc.

@retval OT_ERROR_NONE Successfully set the Thread PSKc. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.

@sa otThreadGetPskcRef