updateFitTempPwd(params: UpdateFitTempPwdParams)

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

Description

Modify a temporary password on the accessory.

Parameters

ParameterTypeRequiredDescription
YesModify parameters

Return Value

Type: Promise<void>
Parsed result reported by the device

Referenced Types

typeWeekWeekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 active
export type Week = [
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
];

Valid Values

EffectiveConfig.repeat
ValueDescriptionSince
none--
week--
Week
ValueDescriptionSince
0--
1--

Examples

import { updateFitTempPwd } from '@ray-js/lock-sdk';
await updateFitTempPwd({
  id: 1,
  name: 'Guest password',
  effective: { effectiveDate: 1700000000, expiredDate: 1700003600, repeat: 'none' },
});