Uploading OTA image file and any html files.
This example uses a modified esp_http_server component to implement the match uri
/index.html, /favicon.ico, /style.css and scripts.js can be overridden by uploading files with same names.
Tested on Windows 10 and Linux Debian
-
Get
toolchainandESP8266_RTOS_SDKfromespressifweb site - https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/index.html -
git clone https://github.com/slacky1965/web_server_uploader_esp8266.git -
cd web_server_uploader_esp8266 -
Open the project configuration menu
make menuconfig -
Go to
Serial flasher configand setDefault serial port -
Go to
Example Connection Configuration- WIFI SSID: WIFI network to which your PC is also connected to.
- WIFI Password: WIFI password
-
make allfor compiling applications -
make flashto download the app -
make storageto createspiffspartition and then download it -
In order to test the file server demo
- run
make monitorand note down the IP assigned to your ESP module. The default port is 80 - test the example interactively on a web browser (assuming IP is 192.168.100.40):
- open path
http://192.168.100.40orhttp://192.168.100.40/index.htmlto see an HTML web page with upload menu - use the file upload form on the webpage to select and upload a file to the server
- uploading a firmware file or html files (*.html, *.css, *.js or other)
- open path
- run
-
make cleanall- default clean and cleanmkspiffs