enableSleep

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

Method signature
enableSleep()

Description

Enable the sleep feature

Parameters

None

Return Value

Type: Promise<void>
None

Error Code

Error CodeError Message
1014Device does not support this feature
1001Device is offline
1002Operation timed out

Examples

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