SoftwareSerial buffer overflow

Hello,

I am trying to send some AT commands to a GSM module and display the response on the serial console. The shorter commands work fine however when I try the last command to give APN, username and password it seems to only return 64bytes. On checking it seem's i'm hitting the buffer limit, I've tried increasing by editing the SoftwareSerial.h file but it made no difference.

Any help/advice would be appreciated.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

void setup() {
  Serial.begin(9600);
    
  mySerial.begin(9600);
  delay(4000);
  mySerial.println("AT+CPIN?");
  delay(4000);
  while (mySerial.available()>0) {
    Serial.write(mySerial.read());
  }
  mySerial.println("AT+CSQ");
  delay(2000);
  while (mySerial.available()>0) {
    Serial.write(mySerial.read());
  }
  mySerial.print("AT+QICSGP=1,\"xxxxx-xxxxxx.xxxxx-xxxxxx.xxx\",\"xxxxxxxx\",\"xxxxxxxx\"");
  delay(5000);
    while (mySerial.available()>0) {
    Serial.write(mySerial.read());
    }
  }

void loop() {
  
  
  }

delay is your enemy.

This should help... Serial Input Basics.