added usage "docu"

This commit is contained in:
FrYakaTKoP
2017-10-08 04:07:37 +02:00
parent a7de25a117
commit c3f7c45f46

View File

@@ -1,29 +1,13 @@
/* /*
modified by fryakatkop nov2015 https://github.com/0x1d/esp8266-laser
#usage:
FSWebServer - Example WebServer with SPIFFS backend for esp8266 /motor/{motorNr}/{value}
Copyright (c) 2015 Hristo Gochkov. All rights reserved. /laser/{value}
This file is part of the ESP8266WebServer library for Arduino environment. /ssid/{ssidname}
/pwd/{password}
This library is free software; you can redistribute it and/or /wiap/1 -> SofAP, 0 -> client
modify it under the terms of the GNU Lesser General Public /saveconf -> will write wificonfig to file
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
*/ */
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include <WiFiClient.h> #include <WiFiClient.h>