Get port state
Get port state
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema array
- port integer
Possible values:
>= 1
and<= 16
port (relay) number
- relay_open_time int64
Possible values:
>= 10
and<= 600000
Relay switching time, in milliseconds
- is_open boolean
if port state is changed from default
[
{
"port": 1,
"relay_open_time": 10,
"is_open": true
}
]
[
{
"port": 1,
"relay_open_time": 10,
"is_open": true
}
]
Please log in
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
object containing info about error
code stringPossible values: [
invalid_authentication
,permission_denied
,not_valid
,system_error
]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringextended info on error
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Log In"
}
}
Loading...