Go Down

Topic: Ethercard.h file download from website to sd card (Read 56 times) previous topic - next topic

mmiizzoo

Hi all,

I need  a help with file download from website with ethercard.h library by using enc28j60 and atmega1284.

I successfully can receive the bytes through  the ethercard buffer (Ethernet::buffer).
The Ethernet::buffer size is about 700 bytes so I download the 2kb file in 512byte packages.

The problem is , in the first package, the http header data cames as well together with the file data and I can't separate them.

Is there any way to separate data from Ethernet::buffer ?
I would like to save the file data only to the sd card.

Thanks

Go Up