String Buffer;
String number;
String text;
if (Serial.available()) {
Buffer = Serial.readString();
if (Buffer.indexOf("+CMT") != -1){
Buffer.replace("+CMT: \"+98", "");
number = Buffer.substring(2, 12);
text = Buffer.substring(41, 51);
}
}
String Buffer;
String number;
String text;
if (Serial.available()) {
Buffer = Serial.readString();
if (Buffer.indexOf("+CMT") != -1){
Buffer.replace("+CMT: \"+98", "");
number = Buffer.substring(2, 12);
text = Buffer.substring(41, 51);
}
}