Set reboot on wake-up
1. API Description
This API is used to set the device to reboot immediately on wake-up.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/general/set-reboot-when-wake-up
- V2.5.0 and below: POST [ip]/mwapi/set-reboot-when-wake-up
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
rebootWhenWakeUp | Yes | Boolean | Reboot the device immediately on wake-up. true: Reboot; false: Not reboot |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Set to reboot the device immediately on wake-up.
Input Example
{
"rebootWhenWakeUp":true
}
Output Example
{
"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 |
---|---|---|
49 | MW_STATUS_INVALID_DATA | The parameters are missing or incorrect |