set-goto-sleep

Use the interface to set the sleep policy of the device.

Request Mode

POST http://ip/mwapi/set-goto-sleep
{
    "goToSleep":1
}
Parameter Description
goToSleep The sleep mode of the device.
0: Never
1: Go to sleep after 30 minutes
2: Go to sleep after 1 hour
3: Go to sleep after 2 hours
4: Go to sleep after 4 hours
5: Go to sleep after 8 hours
6: Go to sleep after 12 hours

Response Body

{
  "status": 0,
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

results matching ""

    No results matching ""