createFitPermanentBleKey(userId: string)

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

Description

Create a permanent Bluetooth key on the accessory side

Parameters

ParameterTypeRequiredDescription
userIdstringYesCloud member userId

Return Value

Type: Promise<unknown>
Cloud response

Error Code

Error CodeError Message
1048The userId does not exist in the member list
1042The device reported creation failure

Examples

import { createFitPermanentBleKey } from '@ray-js/lock-sdk';
await createFitPermanentBleKey('user_001');