Read SMS from the GSM modem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    Read SMS from the GSM modem

    I'm writing code to read sms from GSM modem. When sms received to the modem I get +CMTI:"SM",15. So now i want to take only "15" from this message and send this number with the at command to read the sms. How can i do that? How can i extract only the "15"? Please help me. I'm using c#.
  • user232k2038
    New Member
    • Sep 2007
    • 16

    #2
    Have you tried this?
    Code:
      string number = yourstring.split(',')[1];

    Comment

    Working...