This instruction
HSERIN 5000,READ_SMS,[WAIT("AT+CMGR=1"),STR Sedata\13]'Check OK reply, wait 5sec max.
reads in 13 characters
this is what you should have
HSERIN 5000,READ_SMS,[WAIT("AT+CMGR=1"),STR Sedata\40\13]'Check OK reply, wait 5sec max.
Which will read in 40 characters but stop if a ASCII 13 is read.
Bookmarks