Skip to main content
2 of 3
Added C++ language formatting tag, added Due tag.
Nick Gammon
  • 38.9k
  • 13
  • 70
  • 126

Arduino Serial.write sending more than 64 bytes

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?

user11933