File FSWebServerNoScreen.cpp
↰ Parent directory (/home/fabio/Arduino/MyLvglWatch-20220910)
Contents
Definition (/home/fabio/Arduino/MyLvglWatch-20220910/FSWebServerNoScreen.cpp)
Detailed Description
It is useful to upload/browse/download/ files to the watch. This is achieved using a web server. This code is based on Arduino IDE, ESP32, FSWebServer. Functions were added to interface FSWebServer to other modules in the watch. Minor changes over Arduino IDE, ESP32, FSWebServer. Original copyright message preserved below.
FSWebServer - Example WebServer with FS backend for esp8266/esp32 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the WebServer 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 (“ESP32 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” esp32fs.local/edit; done
access the sample web page at http://esp32fs.local edit the page by going to http://esp32fs.local/edit
Falta criar o header e arrumar as chamadas na tela.
Includes
ESPmDNS.hFFat.hNetworkNoScreen.h(File NetworkNoScreen.h)SPIFFS.hWebServer.hWiFi.hWiFiClient.hconfig.h(File config.h)