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()
IBasicCellularModemService
isOn
in interface IBasicCellularModemService
public void enable()
IBasicCellularModemService
enable
in interface IBasicCellularModemService
public void disable()
IBasicCellularModemService
disable
in interface IBasicCellularModemService
public boolean isEnabled()
IBasicCellularModemService
true
isEnabled
in interface IBasicCellularModemService
public java.lang.String getModel()
IBasicCellularModemService
getModel
in interface IBasicCellularModemService
public java.lang.String getManufacturer()
IBasicCellularModemService
getManufacturer
in interface IBasicCellularModemService
public java.lang.String getSerialNumber()
IBasicCellularModemService
getSerialNumber
in interface IBasicCellularModemService
public java.lang.String[] getRevisionID()
IBasicCellularModemService
getRevisionID
in interface IBasicCellularModemService
public void allowConnect(boolean status)
IBasicCellularModemService
allowConnect
in interface IBasicCellularModemService
status
- - enable/disable as boolean
public boolean isConnectAllowed()
IBasicCellularModemService
isConnectAllowed
in interface IBasicCellularModemService
boolean
Copyright © 2009 Eurotech Inc. All rights reserved.