mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2026-03-22 09:04:15 +01:00
fancypants md
This commit is contained in:
51
README.md
51
README.md
@@ -1,29 +1,36 @@
|
|||||||
# Esp8266-Laser
|
# Esp8266-Laser
|
||||||
Wifi Host for the Arduino-Laser-Spirograph
|
Wifi Host for the Arduino-Laser-Spirograph
|
||||||
|
|
||||||
HTTP endpoints:
|
# HTTP endpoints:
|
||||||
/spirograph GET returns laser and motor values (0 at startup)
|
* /spirograph
|
||||||
POST sets new value(s)
|
* **GET** returns laser and motor values (0 at startup)
|
||||||
laser=1-128 (1:permanent, 2-127 pulse, 128 off)
|
* **POST** sets new value(s)
|
||||||
motor1=1-128
|
* laser=1-128 (1:permanent, 2-127 pulse, 128 off)
|
||||||
motor2=1-128
|
* motor1=1-128
|
||||||
motor3=1-128
|
* motor2=1-128
|
||||||
|
* motor3=1-128
|
||||||
|
|
||||||
|
* /wificonfig ->
|
||||||
/wificonfig -> GET returns wifi settings
|
* **GET** returns wifi settings
|
||||||
POST sets new wifi setting{s}
|
* **POST** sets new wifi setting{s}
|
||||||
apMode=0: will try to connect to SSID first, 1: will directly start the AP
|
* apMode=0: will try to connect to SSID first, 1: will directly start the AP
|
||||||
SSID=ssid
|
* SSID=ssid
|
||||||
password=password
|
* password=password
|
||||||
save=true will save config to spiffs, false will only change RAM variable (useful for onetime ap joins)
|
* save=true will save config to spiffs, false will only change RAM variable (useful for onetime ap joins)
|
||||||
apply=true will reset wifi and try to connect with new param (buggy atm)
|
* apply=true will reset wifi and try to connect with new param (buggy atm)
|
||||||
/saveconf -> POST write wificonfig to file (similar to wificonfig->save=true)
|
* /saveconf ->
|
||||||
/resetwifi -> POST reconnect wifi (similar to wificonfig->apply=true)
|
* **POST** write wificonfig to file (similar to wificonfig->save=true)
|
||||||
/heap -> GET returns free heap of the ESP8266
|
* /resetwifi ->
|
||||||
/files -> GET returns list of files
|
* **POST** reconnect wifi (similar to wificonfig->apply=true)
|
||||||
/presetMode -> GET returns current mode 0: presetsOff 1: cycle (not completed feature)
|
* /heap ->
|
||||||
POST sets mode (see above)
|
* **GET** returns free heap of the ESP8266
|
||||||
/presets -> GET returns /presets.json
|
* /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
|
# Install
|
||||||
|
|||||||
Reference in New Issue
Block a user