mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2026-03-22 09:04:15 +01:00
started change to REST API
This commit is contained in:
13
README.md
13
README.md
@@ -4,12 +4,15 @@ Wifi Host for the Arduino-Laser-Spirograph
|
||||
HTTP GET endpoints:
|
||||
/motor/{motorNr}/{value}
|
||||
/laser/{value}
|
||||
/ssid/{ssidname}
|
||||
/pwd/{password}
|
||||
/apmode/1 -> SofAP (default), 0 -> client
|
||||
/saveconf -> write wificonfig to file
|
||||
/resetwifi -> reconnect wifi with the new settings
|
||||
/readwifi -> returns wifi settings
|
||||
/wificonfig -> GET returns wifi settings
|
||||
POST sets new wifi settings
|
||||
apMode=0: will try to connect to SSID first, 1: will directly start the AP
|
||||
SSID=ssid
|
||||
password=password
|
||||
save=true will save config to spiffs
|
||||
apply=true will reset wifi and try to connect with new param (buggy atm)
|
||||
/readvalues -> return laser and motor values (all 0 at startup, ram only)
|
||||
|
||||
# Install
|
||||
@@ -25,7 +28,7 @@ HTTP GET endpoints:
|
||||
https://github.com/bblanchon/ArduinoJson/
|
||||
|
||||
- follow this instruction:
|
||||
set wifi parameters in data/config.json before upload
|
||||
set wifi parameters in data/wifi.json before upload
|
||||
http://esp8266.github.io/Arduino/versions/2.0.0/doc/filesystem.html#uploading-files-to-file-system
|
||||
|
||||
You may also need to:
|
||||
|
||||
Reference in New Issue
Block a user