I send a sms with a lenght of 128 characters to the MKR1400.
The max lenght of a sms is 156 characters.
When i use the example sketch for receiving sms:
while ((c = sms.read()) != -1) {
Serial.print((char)c);
}
Serial.println("\nEND OF MESSAGE");
// Delete message from modem memory
sms.flush();
Serial.println("MESSAGE DELETED");
}
I get the following output:
Sms Text blablablbalbalbalbalbalbalbalbalablabalbalbalablabblbslbdslfbslfdblsdbflsdblbslblbalbalbablbalbalbalbalbalbalba
11:25:07.825 -> END OF MESSAGE
11:25:07.863 -> MESSAGE DELETED
And the in like a second sms
11:25:09.872 -> Message received from:
11:25:09.872 -> +41786025000
11:25:09.872 -> Sms Rest Text
11:25:09.872 -> END OF MESSAGE
11:25:09.910 -> MESSAGE DELETED
So the sms is divided in like to sms after 120 characters. But i want it in one piece stored in a string. I do it like this (which worksperfectly to the first 120 characters..;=(
while ((c = sms.read()) != -1) {
Config_SMS += char(c);
}
Any tgoughts? Thx
Any thoughts?