http file
This commit is contained in:
parent
47efcf207a
commit
7a048e5e3d
45
src/robo-project/test.http
Normal file
45
src/robo-project/test.http
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user