Put device to sleep

1. API Description

This API is used to make the device entering the sleep state.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/general/fall-to-sleep
  • V2.5.0 and below: POST [ip]/mwapi/fall-to-sleep
Administrator Rights Logged-in
No Yes

2. Input Parameters

None

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Making the device entering the sleep state.

Input Example
None
Output Example
{
    "message": "success",
    "status": 0
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
11 MW_STATUS_DEVICE_BUSY The device is busy. It is prohibited to go to sleep during live streaming, recording, file backup, screencasting, capturing, or when Prevent device from sleeping works.

results matching ""

    No results matching ""