From 9062452d93d528d617c02e397f169b1d1d44245d Mon Sep 17 00:00:00 2001 From: Rybak5611 Date: Mon, 10 Sep 2018 14:21:37 +0000 Subject: [PATCH] Corrected slashes Your application does requests with slashes at the end, for example its ``GET /strip/status/`` and not ``GET /strp/status``. It took me a while to figure out when i was implementing my own server --- arduino_code/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arduino_code/README.md b/arduino_code/README.md index 5d8a678..ee8d6ea 100644 --- a/arduino_code/README.md +++ b/arduino_code/README.md @@ -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 ==========