offDeviceStatusChange(callback: Function)

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

Description

Unsubscribe from device status changes (must use the same callback reference as when subscribing).

Parameters

ParameterTypeRequiredDescription
YesSame reference as used when subscribing

Return Value

Type: void
None

Valid Values

DeviceStatus.type
ValueDescriptionSince
offline--
online--
sleep--
DeviceStatus.onlineTypes
ValueDescriptionSince
local--
cloud--
ble--
localMatter--
yuChannel--
unknown--

Examples

import { offDeviceStatusChange } from '@ray-js/lock-sdk';
offDeviceStatusChange((status) => {
  console.log(status);
});