Software programming guide see: HTTP Server
test preparation
- Any ESP32 series development board
- 2.4GHz router hotspot
- Prepare files in various formats
testing software
- Can be tested based on the esp-idf/examples/protocols/http_server/file_serving routine
test steps
1. Software configuration
Just need to set the ESP32 2.4GHz
connectionWiFi 热点
- menuconfig —> Example Connection Configuration
- —> WiFi SSID
- —> WiFi Password
2. Download firmware
Download the firmware, check the firmware operation log, it will be allocated after WiFi
the connection IP 地址
, as follows:
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 Server
the server
http://192.168.0.100
Open as follows:
4. Upload files
- Upload local files from the PC to the server, and then load them
HTTP Server
into
- Support for loading files in various formats
- If you want to support files in more formats, please add the relevant format codes in " set_content_type_from_file() ", for example:
- By default, the routine
200KB
limits the size of the loaded file for
- If you need to increase the size limit of the loaded file, please modify the "#define MAX_FILE_SIZE (200*1024) // 200 KB" parameter setting
5. Access the loaded file in the browser
- Copy the loaded file link, visit this link in your browser to view the current file