gpio

gpio/{pin}

Read the last value set on a GPIO pin via the API/commands. Only pins with a cached value can be read; output pins must be SET before they can be read.

get/api/gpio/{pin}

Response

Object with pin and value (0 or 1).

Changes

Changed in 2 of the 28 revisions of this API.11