myGPIOd HTTP-API#
The default HTTP-API port is 8081. In addition to a REST API and a long poll endpoint, it offers a simple web interface for managing the configured GPIOs.
REST-API#
Path |
Method |
Command |
|
|---|---|---|---|
|
GET |
gpiolist |
|
|
GET |
gpioget |
|
|
OPTIONS |
gpioinfo |
|
|
PATCH |
gpioblink |
|
|
PATCH |
gpioset |
|
|
PATCH |
gpiotoggle |
|
|
GET |
Gets all vcio values. |
|
|
GET |
vciotemp |
|
|
GET |
vciovolts |
|
|
GET |
vcioclock |
|
|
GET |
vciothrottled |
|
Long poll endpoint#
This endpoint can be used to poll for GPIO events. It responds as soon an event occurs.
URI: /poll
curl -s http://172.0.0.1:8081/poll | jq '.'
{
"gpio": 15,
"event": "rising",
"timestamp_ms": 1768080661383
}