http file

This commit is contained in:
miqlangelo 2025-05-07 09:30:09 +02:00
parent 47efcf207a
commit 7a048e5e3d

View File

@ -0,0 +1,45 @@
# REST Client - Huachao Mao
### Get Status Light
GET http://172.20.10.2/statuslight/state
### POST
POST http://172.20.10.2/move
{
"motorLeft": {
"direction": "forward",
"speed": 50
},
"motorRight": {
"direction": "forward",
"speed": 20
},
"durationInSeconds": 3
}
### POST light
POST http://172.20.10.2/light
{
"led_0": {
"red": 0,
"green": 255,
"blue": 0
},
"led_1": {
"red": 0,
"green": 255,
"blue": 0
},
"led_2": {
"red": 0,
"green": 255,
"blue": 255
},
"led_3": {
"red": 0,
"green": 255,
"blue": 255
}
}