Send long char array (7000) via hardware serial

TenderLoins:

why not just send the pieces that you would have been appending to the buffer

I could do that, and I probably will end up doing it, I just don't understand why I can't output a long string without corruption. Its really frustrating as this is the last thing I need to do before I can finish this project.

Thanks for the help so far everyone :slight_smile:

That could be for hardware or software reasons. I'm still not clear on how it is going wrong but maybe that makes two of us?

Just looking at your Events struct, it looks like you use int as the smallest data unit even for a 1 bit flag?
But then you turn it all into text and have plenty of RAM, unless the problem is due to reset on memory crash, chip RAM holds the stack as well as the heap and deeply nested calls really grow the stack.

Pushing prints straight down serial would save you 7000 bytes RAM plus the time it takes to assemble 7000 bytes of data. Sorry but buffering to RAM is not free even when you have the RAM to spare.