setPowerStatus (v1.0)

Estimated reading time: 1 minute

此API提供了更改设备当前电源状态的功能。

语法

http://<Base URL>/system

认证级别

generic

需求

params' Elements
An object composed of the following pair(s).
name type multiplicity default description
status boolean 1 Power status.
  • true - indicates the power on state.
  • false - indicates the power off state.
JSON Example
{
    "method": "setPowerStatus",
    "id": 55,
    "params": [{"status": false}],
    "version": "1.0"
}

反馈

result's Elements
Not necessary.
JSON Example
{
    "result": [],
    "id": 55
}
Error Code
No additional error codes are defined. Refer to error code for common errors.

附录

  • 只在“休眠”模式下支持开机请求。参考这里了解具体情况。“Sleep”
  • 如果远程启动设置(设置-网络)关闭,则在调用设置电源状态(打开)时从客户端接收错误。
Last modified: 13 Feb 2019