Open snahmad opened 6 years ago
I have increase of task stack size to 50000 to make it work .still write to sd card. empty file.
How much task stack size I need for LibCurl http get method call.
So many issues using libcurl. even using this example not working for me. any idea>
https://github.com/loboris/ESP32_curl_example
Get file (~225 KB) from http server and save it to file system V (20051) vfs_fat: vfs_fat_open: path="/alarm.json", flags=601, mode=1b6 D (20054) vfs_fat: vfs_fat_open: fresult=6 ERROR: -6 []
i have a problem like you when use PUT method with wifi ,bluetooth,ethernet and openssl the monitor show:
Upload received JPG file back to FTP server
I (4641) tcp: create socket ...... curl_easy_perform failed: Out of memory,27 ERROR: -7 [Out of memory]
if i close ethernet this error will disappear
ok. not using any more libcurl.
This is my code
HTTP GET BIG FILE
D (11059) Socket: >> setSSL: No V (11063) vfs_fat: vfs_fat_open: path="/alarm.json", flags=601, mode=1b6 D (11065) Socket: >> listen: port: 80, isDatagram: 0 V (11072) sdmmc_cmd: sending cmd slot=1 op=17 arg=4000 flags=1c50 data=0x3ffbe 13c blklen=512 datalen=512 timeout=1000 D (11077) Socket: >> createSocket: isDatagram: 0 V (11089) sdspi_host: sdspi_host_start_command: slot=1, CMD17, arg=0x00004000 flags=0x5, data=0x3ffbe13c, data_size=512 crc=0x47 D (11094) Socket: << createSocket: sockFd: 8196 D (11106) Socket: >> setReuseAddress: 1 V (11110) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0x49002042 D (11114) Socket: << setReuseAddress V (11117) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0 D (11122) Socket: >> bind: port=80, address=0x0 curl_easy_perform failed: Out of memory D (11136) Socket: << bind V (11138) sdmmc_cmd: sending cmd slot=1 op=24 arg=4000 flags=1c10 data=0x3ffbe 13c blklen=512 datalen=512 timeout=5000 D (11143) Socket: << listen V (11150) sdspi_host: sdspi_host_start_command: slot=1, CMD24, arg=0x00004000 flags=0x7, data=0x3ffbe13c, data_size=512 crc=0x5a D (11153) HttpServerTask: Listening on port 80 D (11168) HttpServerTask: Waiting for new peer client V (11172) sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0xffffffff D (11178) Socket: >> accept: Accepting on 0.0.0.0 [80]; sockFd: 8196, using SS L: 0 V (11181) sdmmc_cmd: cmd response 00000000 00000000 00000000 00000000 err=0x0 state=0 ERROR: -7 [Out of memory] D (12197) Task: << runTask: taskName=Task I (12963) wifi: pm start, type:0