set-auto-reboot

Use the interface to configure auto reboot.

HTTP Request

GET http://ip/mwapi?method=set-auto-reboot&enable=true&week-flags=2&hour=12&min=21
Parameter Description
method set-auto-reboot
enable True indicates the auto reboot function is enabled, otherwise it is false.
week-flags The sum of the masks for the selected days. The masks for Monday to Sunday are: 1, 2, 4, 8, 16, 32, 0. For example: When Monday and Wednesday are selected, week-flags=1+4=5
hour Time, 24-hour format. Value ranges from 0 to 23.
min Minute. Value ranges from 0 to 59.

The set time needs to be converted to UTC time.

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 ""