ulrikp
Junior Member level 3
- Joined
- Mar 1, 2010
- Messages
- 31
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Location
- Copenhagen
- Activity points
- 1,568
Hi,
I'm making a door alarm using a GPRS module. An example of an SMS looks like this:
+CMGR: "REC UNREAD", "+4588888888", "", "10/03/29,11:08:41+04"
Message here...
Now, I would like a bulletproof way to extract the sender ID and time stamp, but I cannot find the AT commands for this. Right now, I'm counting the "/+/: characters and thereby getting the data I need, but I imagine there is better a way that will catch any phone number length and any country code format.
Thanks,
Ulrik
I'm making a door alarm using a GPRS module. An example of an SMS looks like this:
+CMGR: "REC UNREAD", "+4588888888", "", "10/03/29,11:08:41+04"
Message here...
Now, I would like a bulletproof way to extract the sender ID and time stamp, but I cannot find the AT commands for this. Right now, I'm counting the "/+/: characters and thereby getting the data I need, but I imagine there is better a way that will catch any phone number length and any country code format.
Thanks,
Ulrik