Updated README with new README for the science festival 2015.

parent d3a1feaa
......@@ -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<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@
{"message": "OK", "direction": "forward", "action": "move"}
In this case the HTTP status code returned is 200.
{"message": "Unknown direction", "direction": "nowhere", "action": "move"}
In this case the HTTP status code returned is 400.
## Retrieve values from sensors
$ GET<sensor_name>
Acceptable values for *sensor_name*:
* button;
* ir_sensor.
### Examples
$ GET http://username:password@
{"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).
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment