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 GsmExtention
text
- 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 GsmExtention
IOException
InterruptedException
public String getSimPin() throws IOException, InterruptedException
getSimPin
in interface GsmExtention
IOException
InterruptedException
public boolean isSimPin() throws IOException, InterruptedException
isSimPin
in interface GsmExtention
IOException
InterruptedException
public void setSimPin(String simPin) throws IOException, InterruptedException
setSimPin
in interface GsmExtention
IOException
InterruptedException
public String getNetworkProvider() throws IOException, InterruptedException
getNetworkProvider
in interface GsmExtention
IOException
InterruptedException
public String getSignalQuality(boolean raw) throws IOException, InterruptedException
getSignalQuality
in interface GsmExtention
IOException
InterruptedException
Copyright © 2009–2015 atmodem4j. All rights reserved.