Gates
Returns an object describing the states of all gates on the expansion product if present. Currently, this is only available on the ModIT range.
Syntax: see Call Structure
{ "method": "cbrx_connection_get", "params": [ connection-handle, "Gates" ] } |
connection-handle is the Connection Handles as an integer.
Returns:
{ "result": { "N":"state" } } |
N is the port number
state | Description |
---|---|
open | The gate is open |
closed | The gate is closed |
opening | The gate is opening |
closing | The gate is closing |
stalled | The gate has stopped moving |
timeout | The gate has taken too long to respond |
unknown | Neither the top nor bottom end switches are engaged |
open-stalled | The gate has stalled in the open position |
closed-stalled | The gate has stalled in the closed position |
opening-stalled | The gate has stalled whilst opening |
closing-stalled | The gate has stalled whilst closing |
disabled | Disabled flag has been set which prevents the gate from opening/ closing |
Example
Copy
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"1": "open",
"2": "closed",
"3": "closed",
"4": "opening"
}
}