Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected slashes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions arduino_code/README.md
Original file line number Diff line number Diff line change
@@ -19,14 +19,14 @@ API

The web server accepts the following HTTP requests:
* `GET` request to `/`: Responds with a `Hello from Arduino Server` message.
* `GET` request to `/strip/status`: Responds with an `ON` or `OFF` message for the on/off state of the strip.
* `GET` request to `/strip/modes`: Responds with a comma separated list of the available modes.
* `GET` request to `/strip/mode`: Responds with the name of the active mode.
* `GET` request to `/strip/color`: Responds with a JSON representation of the color of the strip, e.g. `{"r":92,"g":34,"b":127}`.
* `PUT` request to `/strip/status/on`: Turns the strip on.
* `PUT` request to `/strip/status/off`: Turns the strip off.
* `PUT` request to `/strip/mode`: Updates the mode. The required data are the name of the mode and, if applicable, a time period in ms, e.g. `SCANNER 100`.
* `PUT` request to `/strip/color`: Updates the color of the strip. The data must be formatted as a JSON object, e.g. `{"r":48,"g":254,"b":176}`.
* `GET` request to `/strip/status/`: Responds with an `ON` or `OFF` message for the on/off state of the strip.
* `GET` request to `/strip/modes/`: Responds with a comma separated list of the available modes.
* `GET` request to `/strip/mode/`: Responds with the name of the active mode.
* `GET` request to `/strip/color/`: Responds with a JSON representation of the color of the strip, e.g. `{"r":92,"g":34,"b":127}`.
* `PUT` request to `/strip/status/on/`: Turns the strip on.
* `PUT` request to `/strip/status/off/`: Turns the strip off.
* `PUT` request to `/strip/mode/`: Updates the mode. The required data are the name of the mode and, if applicable, a time period in ms, e.g. `SCANNER 100`.
* `PUT` request to `/strip/color/`: Updates the color of the strip. The data must be formatted as a JSON object, e.g. `{"r":48,"g":254,"b":176}`.

LED Strips
==========