Hello, I have been working all day trying to figure something out.
I have some binary image data stored in the arduino flash. Unfortunately, it is much larger than a packet size, so I must send multiple packets to fully complete sending the image.
I have broken up the data into chunks the size of the remaining buffer after the header, yet when I try to send multiple packets within the same loop, it hangs up after the first packet.
I send them such as:
plen=es.ES_fill_tcp_data_p(buf,0,PSTR("SOME CONTENT TO SEND, BUT MUCH BIGGER THAN THIS") );
es.ES_make_tcp_ack_from_any(buf); // send ack for http get
es.ES_make_tcp_ack_with_data(buf,plen);
plen=es.ES_fill_tcp_data_p(buf,0,PSTR("SOME REMAINING CONTENT TO FINISH ENTIRE WEBPAGE") );
es.ES_make_tcp_ack_from_any(buf); // send ack for http get
es.ES_make_tcp_ack_with_data(buf,plen);
All in the same loop. Is there a way to do this this library? I'm dumbfounded.