Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EV3WebController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Science Festival 2015
EV3WebController
Commits
306f47f6
Unverified
Commit
306f47f6
authored
Oct 31, 2015
by
Cédric Bonhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated README with new README for the science festival 2015.
parent
d3a1feaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
README.md
README.md
+50
-1
No files found.
README.md
View file @
306f47f6
...
...
@@ -8,8 +8,57 @@ microframework provides an interface in order to control the EV3 robot.
Tested with Python 3.4 and Python 2.7.
# How to use the interface
## Move the robot
$ GET http://192.168.1.10:5000/move/<direction>/<speed=60>
The value of
*speed*
is optional. Default is 60.
Acceptable values for
*direction*
:
*
forward;
*
backward;
*
left;
*
right;
*
stop.
### Examples
$ GET http://username:password@192.168.1.10:5000/move/forward/50
{"message": "OK", "direction": "forward", "action": "move"}
In this case the HTTP status code returned is 200.
$ GET http://127.0.0.1:5000/move/nowhere
{"message": "Unknown direction", "direction": "nowhere", "action": "move"}
In this case the HTTP status code returned is 400.
## Retrieve values from sensors
$ GET http://192.168.1.10:5000/sensor/<sensor_name>
Acceptable values for
*sensor_name*
:
*
button;
*
ir_sensor.
### Examples
$ GET http://username:password@192.168.1.10:5000/sensor/ir_sensor
{"distance": 12}
# License
cve-search is free software released under the "Modified BSD license"
Copyright (c) 2013-2015 Cédric Bonhomme - https://www.cedricbonhomme.org
# Contact
Cédric BOnhomme
.
[
Cédric Bonhomme
](
https://www.cedricbonhomme.org
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment