Retrieve Relay Status
# Retrieve Relay Status
Path:
/api/relay.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to retrieve the power status and delay information of 3 relays.
Response
Name | Type | Example | Description |
---|---|---|---|
relay | int | 1 | Number of relays, ranging from 1 to 3. |
delay | int | 0 | Delayed execution time of the relay. Unit: second. |
status | int | 0 | Relay status. 1: On. 0: Off. |
Example
[{
"relay": 1,
"delay": 0,
"status": 1
}, {
"relay": 2,
"delay": 0,
"status": 1
}, {
"relay": 3,
"delay": 0,
"status": 1
}]