char response[256];
// …
while (mySerial.available() != 0 && i < (sizeof(response) – 1)) {
response[i] = (char)mySerial.read();
i++;
}
response[i] = ‘\0’; // null terminate C-string
https://forum.arduino.cc/t/sim800-at-commands-output-parsing/493266/4
SIM800 AT Commands output parsing – Using Arduino was last modified: April 21st, 2021 by