syncOpenModeRise(dpCodes?: string[])

Requires:
@ray-js/lock-sdk≥1.2.0

Description

Initiate unlock-method synchronization.

Parameters

ParameterTypeRequiredDescription
dpCodesstring[]NoDP code of the unlock methods to synchronize; omit to synchronize all

Return Value

Type: Promise<SyncOpenModeRiseResult>
Pending command returned by the cloud (ins / distributed)
SyncOpenModeRiseResult
PropertyTypeDescription
insstringPassthrough command to be sent to the device; empty means none
distributedbooleanWhether the cloud requires sending

Examples

import { syncOpenModeRise } from '@ray-js/lock-sdk';
// Sync all unlock methods
const { ins, distributed } = await syncOpenModeRise();
// Sync only password and fingerprint
await syncOpenModeRise(['unlock_password_kit', 'unlock_fingerprint_kit']);