|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.adapters.sms.SMSAdapter
public class SMSAdapter
Adapter lets you send and receive SMS messages (non-binary).
Example:
import com.alarexgroup.m2mplf.adapters.sms.IncomingSMSMessage;
|
| Constructor Summary | |
|---|---|
SMSAdapter()
|
|
| Method Summary | |
|---|---|
static SMSAdapter |
getSMSAdapter(SMSAdapterListener listener)
Method initializes adapter and returns it's instance |
void |
onURCEvent(java.lang.String urc)
Internal method |
static void |
sendPduSMS(java.lang.String pduMessage)
Method lets you send any PDU |
static void |
sendSMS(java.lang.String destinationNumber,
java.lang.String messageText)
Method sends an SMS message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMSAdapter()
| Method Detail |
|---|
public static SMSAdapter getSMSAdapter(SMSAdapterListener listener)
listener - listener
SMSAdapter,
SMSAdapterListener
public static void sendSMS(java.lang.String destinationNumber,
java.lang.String messageText)
destinationNumber - - telephone number in international format (+420603572525)messageText - - message text, max length = 160 charsSMSAdapterpublic static void sendPduSMS(java.lang.String pduMessage)
pduMessage - - message in PDU formatSMSAdapterpublic final void onURCEvent(java.lang.String urc)
onURCEvent in interface ATCommanderListenerurc - urc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||