Led

API Reference

List All Leds

get
Responses
200
Successful Response
application/json
get
GET /controller/led HTTP/1.1
Host: robopipe-1.local
Accept: */*
200

Successful Response

[
  {
    "dev": "text",
    "circuit": "text",
    "value": 1
  }
]

Get Led

get
Path parameters
circuitstringRequired
Responses
200
Successful Response
application/json
get
GET /controller/led/{circuit} HTTP/1.1
Host: robopipe-1.local
Accept: */*
{
  "dev": "text",
  "circuit": "text",
  "value": 1
}

Set Led

post
Path parameters
circuitstringRequired
Body
valueinteger · max: 1Required

Value must be between 0 and 1

Responses
200
Successful Response
application/json
post
POST /controller/led/{circuit} HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 11

{
  "value": 1
}
{
  "dev": "text",
  "circuit": "text",
  "value": 1
}

Set All Leds

post
Body
valueinteger · max: 1Required

Value must be between 0 and 1

Responses
200
Successful Response
application/json
post
POST /controller/led HTTP/1.1
Host: robopipe-1.local
Content-Type: application/json
Accept: */*
Content-Length: 11

{
  "value": 1
}
[
  {
    "dev": "text",
    "circuit": "text",
    "value": 1
  }
]

Last updated