W406-CE User’s Manual
Application Development
Sets the SMS storage base.
Class Name:
GPRS
Method:
int SetSMSStorageBase(StorageBase mode)
Inputs:
<mode> Storage base number in “StorageBase” type.
Return Values:
0 on success, otherwise the function fails
Remark:
public enum StorageBase
{
SIMCard = 0,
CellularModule,
Both
}
Sends an SMS message to a specific phone number.
Class Name:
GPRS
Method:
int SendSMS(uint msg_mode, ref SMSMSG pmsg)
Inputs:
<msg_mode> 0: message in text, 1: message in PDU
<psms> SMS message structure
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 send your SMS message, you must construct your PDU data into
the “SMSMSG.msg_text” field with exact length “SMSMSG.msg_length”.
B-14