getGpi
Get the state of a general purpose input.
Parameter
The name of the input.
Return value
An object with the following keys:
| Key | Type | Description |
|---|---|---|
| active | boolean | Whether the input is currently active. v6.0 |
| edgeCount | number | Number of edges (state changes) detected. v6.0 |
| activeCount | number | Number of times the input became active. v6.0 |
| state | boolean | Deprecated name of active. |
The request fails if the state of the input is not yet known.
Example
getGpi "MASTER.IN1"