Hi Folks,
I develop a system, where i need to receive files (20-40MB) via HTTP POST request and store them into SD card. To do this, I use LwIP (netconn API) and TinyFS. My problem is that it only works well with small files (20~100B).
The implemented logic looks like the following:
* wait for an incoming connection
* parse the HTTP header (excluding resource name and method)
* write the rest of data from the current pbuf
* repeat the following while data can be read from the connection:
* acquire the next "part" of data by netbuf_next()
* if it results -1
* delete the current netbuf by netbuf_delete()
* call netconn_recv() on the connection
* store data (if all the above result success)
Can anybody help me, what should I fix? What did I wrong?
Regards,
Nobert