Files
esp8266-laser/README.md
fryakatkop 769ec8ef9d lf
2017-10-25 01:13:08 +02:00

1.5 KiB

Esp8266-Laser

Wifi Host for the Arduino-Laser-Spirograph

HTTP GET endpoints:
/motor/{motorNr}/{value}
/laser/{value}
/saveconf -> write wificonfig to file
/resetwifi -> reconnect wifi with the new 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

You may also need to:

Development

Frontend

Frontend development requires NodeJS / NPM.

Run development server:
npm run dev

Build distribution source:
npm run build