Create an HTTP Server server based on ESP32, support loading files to the server, and delete the loaded files

Software programming guide see: HTTP Server

test preparation

  • Any ESP32 series development board
  • 2.4GHz router hotspot
  • Prepare files in various formats

testing software


test steps

1. Software configuration

Just need to set the ESP32 2.4GHzconnectionWiFi 热点

  • menuconfig —> Example Connection Configuration
    • —> WiFi SSID
    • —> WiFi Password

insert image description here

2. Download firmware

Download the firmware, check the firmware operation log, it will be allocated after WiFithe connection IP 地址, as follows:
insert image description here

3. Access HTTP Server

  • Connect to the same WiFi hotspot or the same router on the PC side
  • Then use the browser on the PC side to access HTTP Serverthe server
http://192.168.0.100

Open as follows:
insert image description here

4. Upload files

  • Upload local files from the PC to the server, and then load them HTTP Serverinto

insert image description here

  • Support for loading files in various formats

insert image description here

insert image description here

  • By default, the routine 200KBlimits the size of the loaded file for

insert image description here

5. Access the loaded file in the browser

  • Copy the loaded file link, visit this link in your browser to view the current file

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/Marchtwentytwo/article/details/130852573