Send long char array (7000) via hardware serial

Ah yeah, I could, but I've made a custom board, and the two inputs that have Serial1 on them now have caps and pullups on them so I doubt they would work :frowning:

I ended up testing whether without all my other processes going on, could I print a very long string, so I ran the following:

char post_data[7000];

void setup() {
  // put your setup code here, to run once:
  Serial.begin(19200);
  
  strcpy(post_data, "START");
  for (int i = 0; i < 40; i++) {
    strcat(post_data, "abcdefghijklmnopqrstuvwxyz");
  }

  Serial.println(post_data);
  Serial.println(post_data);
  Serial.println(post_data);
}

void loop() {}

All three lines printed fine.

I then started adding more of the stuff that I thought could be causing an issue - TinyGPS++, MsTimer2, SoftwareSerial etc. and I couldn't pin it down to a specific library. At some point, the 3 print lines do not match. But, in answer to my original question, the Arduino Serial library, or any others, are not limited to a maximum length. I'm gonna chalk this up to running out of SRAM or something else that I'm not experienced enough to understand :slight_smile: