I m using a wifly module and im sending a large amount of bytes. I m sending a total of 7206 bytes where I write
6 bytes and then the remaining 7200 bytes are sent in 1440 chunks. The problem is occasionally this data gets fragmented.
So the time I write the first 6 bytes to the wifly to the time I send the 1440 chunks varies. So my guess as to whats
going wrong is that the wifly buffer is overflowing once it gets filled to its max of 1460 bytes. The recommendation
on the wifly manual is the following,
My buffer is set to flush after 2 seconds. The buffer size is set to 1460. Will the buffer flush after its full or after the 2 seconds elapses? Before, I was using the flush command 0xd which flushes manually when I want however on the receiving side its read as the decimal number 26 which isnt what I want. I was wondering how to solve this problem and is there any way to view the amount of outgoing data or the data that is due to be flushed so I can have better control over it?For high throughput, increase the UART baud rate, set the flush
size to 1,460, and set the flush timer to a large value so that full IP packets are sent.