added /preset endpoint and fixed numbering in presets.json

This commit is contained in:
fryakatkop
2017-10-30 18:50:12 +01:00
parent d74caa1799
commit 0aeb941698
4 changed files with 108 additions and 37 deletions

View File

@@ -8,8 +8,24 @@ Wifi Host for the Arduino-Laser-Spirograph
* laser=1-128 (1:permanent, 2-127 pulse, 128 off)
* motor1=1-128
* motor2=1-128
* motor3=1-128
* motor3=1-128
* /preset
* **POST** sets new value(s) to Preset
* nr=presetNr (1-128)
* laser=1-128 (1:permanent, 2-127 pulse, 128 off)
* motor1=1-128
* motor2=1-128
* motor3=1-128
* apply=true -> run preset
* /presetMode
* **GET** returns current mode
* **POST** sets mode 0: presetsOff 1: cycle (not completed feature)
* /presets
* **GET** returns /presets.json
* /wificonfig
* **GET** returns wifi settings
* **POST** sets new wifi setting{s}
@@ -22,11 +38,6 @@ Wifi Host for the Arduino-Laser-Spirograph
* **GET** returns free heap of the ESP8266
* /files
* **GET** returns list of files
* /presetMode
* **GET** returns current mode
* **POST** sets mode 0: presetsOff 1: cycle (not completed feature)
* /presets
* **GET** returns /presets.json
## Install