getPowerStatus (v1.0)
Estimated reading time: 1 minute
- 这个API提供设备的当前电源状态。
注意
- 有些设备在断电状态下可能不响应。
语法
- http://<Base URL>/system
认证级别
- none
需求
- params' Elements
- Not necessary.
- JSON Example
-
{ "method": "getPowerStatus", "id": 50, "params": [], "version": "1.0" }
反馈
- result's Elements
- An object composed of the following pair(s).
name | type | multiplicity | default | description |
---|---|---|---|---|
status | string | 1 | 电源状态。定义了以下值。
|
- JSON Example
-
{ "result": [{"status": "standby"}], "id": 50 }
- 错误代码
- 没有定义额外的错误代码。请参阅 错误代码 常见的错误。
Last modified: 25 Dec 2019