Last updated 1 month ago
/controller/led
curl -L \ --url 'https://robopipe-1.local/controller/led'
[ { "dev": "text", "circuit": "text", "value": 1 } ]
/controller/led/{circuit}
curl -L \ --url 'https://robopipe-1.local/controller/led/{circuit}'
{ "dev": "text", "circuit": "text", "value": 1 }
Value must be between 0 and 1
curl -L \ --request POST \ --url 'https://robopipe-1.local/controller/led/{circuit}' \ --header 'Content-Type: application/json' \ --data '{"value":1}'
curl -L \ --request POST \ --url 'https://robopipe-1.local/controller/led' \ --header 'Content-Type: application/json' \ --data '{"value":1}'