public class DefaultGsmExtention extends Object implements GsmExtention
| Constructor and Description |
|---|
DefaultGsmExtention() |
| Modifier and Type | Method and Description |
|---|---|
Modem |
getModem() |
String |
getNetworkProvider() |
String |
getSignalQuality(boolean raw) |
String |
getSimPin() |
boolean |
isSimPin() |
void |
sendPdu(int pduLength,
String pdu) |
void |
sendSms(String phonenumber,
String text) |
void |
setModem(Modem modem) |
void |
setSimPin(String simPin) |
public void sendSms(String phonenumber, String text)
sendSms in interface GsmExtentiontext - the text to send.
Try to send 7-Bit ASCII, if its impossible 16 bit will be used.
If the Message is too long the message will be split and multiple medssages will be sent.
The multiple messages will be concatentiated by the receiver.public void sendPdu(int pduLength,
String pdu)
throws IOException,
InterruptedException
sendPdu in interface GsmExtentionIOExceptionInterruptedExceptionpublic String getSimPin() throws IOException, InterruptedException
getSimPin in interface GsmExtentionIOExceptionInterruptedExceptionpublic boolean isSimPin()
throws IOException,
InterruptedException
isSimPin in interface GsmExtentionIOExceptionInterruptedExceptionpublic void setSimPin(String simPin) throws IOException, InterruptedException
setSimPin in interface GsmExtentionIOExceptionInterruptedExceptionpublic String getNetworkProvider() throws IOException, InterruptedException
getNetworkProvider in interface GsmExtentionIOExceptionInterruptedExceptionpublic String getSignalQuality(boolean raw) throws IOException, InterruptedException
getSignalQuality in interface GsmExtentionIOExceptionInterruptedExceptionCopyright © 2009–2015 atmodem4j. All rights reserved.