I am using an Arduino Due to collect a large amount of data from an encoder (about 2kb). Afterwards I need to send the collected data to an application I wrote. I serialized my tx data into a byte buffer and simply used this code to transmit:
Serial.write(buffer, bytesToSend);
This only seems to work if bytesToSend is a smaller than 64 bytes. What are ways I can work around this limitation?