public interface IPlatformCustomization
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReboot()
Retrieves whether it is possible to reboot the device or not.
|
ConnectorLogger |
getConnectorLogger()
Retrieves the connector logger.
|
IConnectorPreferences |
getConnectorPreferences()
Retrieves the Cloud Connector preferences used to determine the Cloud
Connector settings.
|
ImeiNumber |
getImeiNumber()
Retrieves the IMEI number of the device.
|
java.lang.String |
getLocalIPAddress()
Retrieves the local IP Address.
|
Location |
getLocation()
Retrieves the device location (GPS coordinates).
|
int |
getNetworkConnectionType()
Retrieves the active network connection type.
|
byte[] |
getPPPLinkSpeed()
Retrieves the PPP link speed in bits per second.
|
byte[] |
getPPPPhoneNumber()
Retrieves the phone number that was dialed for the PPP connection.
|
MacAddress |
getPrimaryMacAddress()
Retrieves the primary MAC Address of the device.
|
ISocket |
getSocket(java.lang.String host,
int port)
Retrieves the socket to be used to open a connection to
Device Cloud.
|
ISocket |
getSSLSocket(java.lang.String host,
int port)
Retrieves the SSL socket that will be used to open a secure
connection against Device Cloud.
|
boolean |
isSimulator()
Retrieves whether the connector is running as a simulator or not.
|
void |
reboot()
Reboots the device.
|
boolean canReboot()
true if the device can be rebooted,
false otherwise.ConnectorLogger getConnectorLogger()
ConnectorLogger,
DefaultConnectorLoggerIConnectorPreferences getConnectorPreferences()
IConnectorPreferences,
PreferencesManagerImeiNumber getImeiNumber()
ImeiNumberjava.lang.String getLocalIPAddress()
Location getLocation()
Locationint getNetworkConnectionType()
INetworkImplementation.ETH_TYPE,
INetworkImplementation.WIFI_TYPE,
INetworkImplementation.MOBILE_TYPE,
INetworkImplementation.UNKNOWN_TYPEbyte[] getPPPLinkSpeed()
INetworkImplementation.DEFAULT_LINK_SPEEDbyte[] getPPPPhoneNumber()
INetworkImplementation.DEFAULT_PHONE_NUMBERMacAddress getPrimaryMacAddress()
This is used to calculate the Device ID if the device_type_id
is configured to mac).
If the network connection type is Ethernet
(INetworkImplementation.ETH_TYPE})
or Wi-Fi (INetworkImplementation.WIFI_TYPE)
this information is also required by Device Cloud.
MacAddress,
getNetworkConnectionType(),
INetworkImplementation.ETH_TYPE,
INetworkImplementation.WIFI_TYPEISocket getSocket(java.lang.String host, int port)
host - The host name to connect to.port - The port of the connection.ISocketISocket getSSLSocket(java.lang.String host, int port)
host - The host name to connect to.port - The port of the connection.ISocketboolean isSimulator()
true if the connector runs as a simulator,
false otherwise.void reboot()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.