Input#

Note

The endpoints listed on this page require a project to be loaded on the controller.

Methods#

GET#

Returns the status of digital & analogue inputs on the queried controller.

GET /api/input

Returns a JSON object with the following attributes:

Attribute

Value Type

Description

gpio

array

Array of Input objects

The Input object has the following properties:

Attribute

Value Type

Description

Value Example

input

integer

Input number

1

type

string

Analog, Digital, or Contact Closure

"Contact Closure"

value

integer or boolean

Value type depends on input type - Analog inputs return an integer, 0-100; other types return a bool.

true