public class CellularModem extends java.lang.Object implements IBasicCellularModemService
SERVICE_NAME| Constructor and Description |
|---|
CellularModem() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowConnect(boolean status)
Allows modem to establish PPP connection if status is true.
|
void |
disable()
disables modem
|
void |
enable()
enables modem
|
java.lang.String |
getManufacturer()
Returns modem's manufacturer identification
|
java.lang.String |
getModel()
Reports modem's model
|
java.lang.String[] |
getRevisionID()
Reports modem's revision identification
|
java.lang.String |
getSerialNumber()
Answers modem's serial number
|
boolean |
isConnectAllowed()
Reports if connection is allowed by the application.
|
boolean |
isEnabled()
Answers if cellular modem is enabled by application
default value is set to true |
boolean |
isOn()
Answers if modem is on
|
public boolean isOn()
IBasicCellularModemServiceisOn in interface IBasicCellularModemServicepublic void enable()
IBasicCellularModemServiceenable in interface IBasicCellularModemServicepublic void disable()
IBasicCellularModemServicedisable in interface IBasicCellularModemServicepublic boolean isEnabled()
IBasicCellularModemServicetrueisEnabled in interface IBasicCellularModemServicepublic java.lang.String getModel()
IBasicCellularModemServicegetModel in interface IBasicCellularModemServicepublic java.lang.String getManufacturer()
IBasicCellularModemServicegetManufacturer in interface IBasicCellularModemServicepublic java.lang.String getSerialNumber()
IBasicCellularModemServicegetSerialNumber in interface IBasicCellularModemServicepublic java.lang.String[] getRevisionID()
IBasicCellularModemServicegetRevisionID in interface IBasicCellularModemServicepublic void allowConnect(boolean status)
IBasicCellularModemServiceallowConnect in interface IBasicCellularModemServicestatus - - enable/disable as booleanpublic boolean isConnectAllowed()
IBasicCellularModemServiceisConnectAllowed in interface IBasicCellularModemServicebooleanCopyright © 2009 Eurotech Inc. All rights reserved.