I got another MKR GSM 1400 and after a while of not knowing what to do with it I just wanted to read some SMS and look for some bit of text in the SMS.
The problem is that instead of returning the message as my last 1400 did it returns:
what does this example loop show when you send an SMS?
void loop()
{
char c;
// If there are any SMSs available()
if (sms.available())
{
Serial.println("Message received from:");
// Get remote number
sms.remoteNumber(remoteNumber, 20);
Serial.println(remoteNumber);
// This is just an example of message disposal
// Messages starting with # should be discarded
if(sms.peek()=='#')
{
Serial.println("Discarded SMS");
sms.flush();
}
// Read message bytes and print them
while(c=sms.read())
Serial.print(c);
Serial.println("\nEND OF MESSAGE");
// delete message from modem memory
sms.flush();
Serial.println("MESSAGE DELETED");
}
delay(100);
}
I got this:
2b 43 4d 47 4c 3a 20 37 2c 22 52 45 43 20 55 4e 52 45 41 44 22 2c 22 2b 4d 79 4e 75 6d 62 65 72 22 2c 2c 22
edit it a bit because of my number