W406-CE User’s Manual
Application Development
Receives an indexed SMS message.
Class Name:
GPRS
Method:
int RecvSMS(int index, uint msg_mode, ref SMSMSG pmsg)
Inputs:
<index> the index to the message pool
<msg_mode> 0: message in text, 1: message in PDU
<psms> point to the message
Return Values:
0 on success, otherwise, the function fails
Remark:
public struct SMSMSG
{
public uint been_read;
public string msg_date;
public string msg_time;
public string phone_number;
public uint msg_length;
public string msg_text;
}
If you like to use PDU mode to receive your SMS message, you must destruct the
“SMSMSG.msg_text” field to extract the message body.
Deletes an indexed SMS message.
Class Name:
GPRS
Method:
int DeleteSMS(int);
Inputs:
<index> the index to the message pool
Return Values:
0 on success, otherwise, the function fails
Remark:
B-15