gpio

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}

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/gpio/{pin}
  • Auth
    none declared

Response

Object with pin and value (0 or 1).

Changes