diff --git a/esp8266-laser.ino b/esp8266-laser.ino index 3dec92d..11e550b 100644 --- a/esp8266-laser.ino +++ b/esp8266-laser.ino @@ -1,29 +1,13 @@ /* - modified by fryakatkop nov2015 + https://github.com/0x1d/esp8266-laser - - FSWebServer - Example WebServer with SPIFFS backend for esp8266 - Copyright (c) 2015 Hristo Gochkov. All rights reserved. - This file is part of the ESP8266WebServer library for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - upload the contents of the data folder with MkSPIFFS Tool ("ESP8266 Sketch Data Upload" in Tools menu in Arduino IDE) - or you can upload the contents of a folder if you CD in that folder and run the following command: - for file in `ls -A1`; do curl -F "file=@$PWD/$file" esp8266fs.local/edit; done - - access the sample web page at http://esp8266fs.local *edit* dns will catch all request and response with 302 - edit the page by going to http://esp8266fs.local/edit + #usage: + /motor/{motorNr}/{value} + /laser/{value} + /ssid/{ssidname} + /pwd/{password} + /wiap/1 -> SofAP, 0 -> client + /saveconf -> will write wificonfig to file */ #include #include