Source code:
Code: Select all
https://github.com/espressif/esp-idf/tree/master/examples/protocols/http_server/file_serving
I'm a newbie in programming and I'm having a hard time trying this example to work with my SD Card, I tried another similar program in Arduino IDE without problems but in ESP-IDE I can't make it work as the default path for file serving to the SD Card, And it's all correctly configured with idf.py menuconfig
When I try to mount the file server to /sdcard i get the following error:
Code: Select all
"file server presently supports only '/spiffs' as base path"
Code: Select all
ets Jun 8 2016 00:22:57
I (552) example: Initializing SD card
I (552) example: Using SPI peripheral
I (562) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
Name: SS08G
Type: SDHC/SDXC
Speed: 20 MHz
Size: 7580MB
I (5212) example: Initializing SPIFFS
I (5332) example: Partition size: total: 896321, used: 3012
I (5332) file_server: Starting HTTP Server on port: '80'
I (5342) gpio: GPIO[13]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (5352) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (5352) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (5362) gpio: GPIO[14]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
Vicente.