public class ThreadDevice
extends com.digi.xbee.api.ThreadDevice
CellularDevice
,
DigiPointDevice
,
DigiMeshDevice
,
Raw802Device
,
WiFiDevice
,
XBeeDevice
,
ZigBeeDevice
DEFAULT_PROTOCOL, DEFAULT_SOURCE_PORT, sourcePort
bluetoothPassword, connectionInterface, currentFrameID, dataReader, DEFAULT_RECEIVE_TIMETOUT, ipv6Address, localXBeeDevice, logger, network, operatingMode, receiveTimeout, TIMEOUT_BEFORE_COMMAND_MODE, TIMEOUT_ENTER_COMMAND_MODE, TIMEOUT_READ_PACKET, xbee16BitAddress, xbee64BitAddress, xbeeProtocol
Constructor and Description |
---|
ThreadDevice(android.content.Context context,
int baudRate)
Class constructor.
|
ThreadDevice(android.content.Context context,
int baudRate,
AndroidUSBPermissionListener permissionListener)
Class constructor.
|
ThreadDevice(android.content.Context context,
java.lang.String port,
int baudRate)
Class constructor.
|
ThreadDevice(android.content.Context context,
java.lang.String port,
com.digi.xbee.api.connection.serial.SerialPortParameters parameters)
Class constructor.
|
getAssociationIndicationStatus, getThreadAssociationIndicationStatus, getXBeeProtocol, isConnected, open, sendCoAPData, sendCoAPData, sendCoAPDataAsync, sendCoAPDataAsync, sendIPData, sendIPDataAsync
addDataListener, addIPDataListener, get16BitAddress, getDestinationAddress, getNetwork, readData, readData, readDataFrom, readDataFrom, readDeviceInfo, readIPData, readIPData, readIPDataFrom, readIPDataFrom, removeDataListener, removeIPDataListener, sendBroadcastData, sendData, sendDataAsync, setDestinationAddress, startListening, stopListening
addBluetoothDataListener, addIOSampleListener, addMicroPythonDataListener, addModemStatusListener, addPacketListener, addUserDataRelayListener, close, getNextFrameID, getOperatingMode, getReceiveTimeout, isOpen, isRemote, removeBluetoothDataListener, removeIOSampleListener, removeMicroPythonDataListener, removeModemStatusListener, removePacketListener, removeUserDataRelayListener, reset, sendBluetoothData, sendMicroPythonData, sendPacket, sendPacket, sendPacketAsync, sendUserDataRelay, setReceiveTimeout, toString
addExplicitDataListener, addSerialDataListener, addSMSListener, applyChanges, checkATCommandResponseIsValid, determineOperatingMode, disableBluetooth, enableApplyConfigurationChanges, enableBluetooth, executeParameter, forceDisassociate, get64BitAddress, getADCValue, getAPIOutputMode, getBluetoothMacAddress, getConnectionInterface, getDIOChangeDetection, getDIOValue, getFirmwareVersion, getHardwareVersion, getIOConfiguration, getIOSamplingRate, getIPv6Address, getIPv6DestinationAddress, getNodeID, getPANID, getParameter, getPowerLevel, getPWMDutyCycle, isApplyConfigurationChangesEnabled, readExplicitData, readExplicitData, readExplicitDataFrom, readExplicitDataFrom, readIOSample, removeExplicitDataListener, removeSerialDataListener, removeSMSListener, sendAndCheckCoAPPacket, sendAndCheckXBeePacket, sendATCommand, sendBroadcastExplicitData, sendData, sendData, sendDataAsync, sendDataAsync, sendExplicitData, sendExplicitData, sendExplicitData, sendExplicitDataAsync, sendExplicitDataAsync, sendExplicitDataAsync, sendSerialData, sendXBeePacket, sendXBeePacket, sendXBeePacketAsync, set16BitAddress, setAPIOutputMode, setBluetoothPassword, setDIOChangeDetection, setDIOValue, setIOConfiguration, setIOSamplingRate, setIPv6DestinationAddress, setNodeID, setPANID, setParameter, setPowerLevel, setPWMDutyCycle, softwareReset, updateBluetoothPassword, updateDeviceDataFrom, writeChanges
public ThreadDevice(android.content.Context context, int baudRate)
ThreadDevice
object for
Android with the given parameters.context
- The Android context.baudRate
- The USB connection baud rate.java.lang.IllegalArgumentException
- if baudRate < 1
.java.lang.NullPointerException
- if context == null
.ThreadDevice(Context, int, AndroidUSBPermissionListener)
,
ThreadDevice(Context, String, int)
,
ThreadDevice(Context, String, SerialPortParameters)
public ThreadDevice(android.content.Context context, int baudRate, AndroidUSBPermissionListener permissionListener)
ThreadDevice
object for
Android with the given parameters.context
- The Android context.baudRate
- The USB connection baud rate.permissionListener
- The USB permission listener that will be
notified when user grants USB permissions.java.lang.IllegalArgumentException
- if baudRate < 1
.java.lang.NullPointerException
- if context == null
.ThreadDevice(Context, int)
,
ThreadDevice(Context, String, int)
,
ThreadDevice(Context, String, SerialPortParameters)
,
AndroidUSBPermissionListener
public ThreadDevice(android.content.Context context, java.lang.String port, int baudRate)
ThreadDevice
object for
Android with the given parameters.
This constructor uses the Digi Android Serial Port API based on the RxTx library to communicate with the devices.
context
- The Android application context.port
- Serial port name where XBee device is attached to.baudRate
- The serial port connection baud rate.java.lang.NullPointerException
- If context == null
or
if port == null
.java.lang.IllegalArgumentException
- if baudRate < 1
.ThreadDevice(Context, int)
,
ThreadDevice(Context, int, AndroidUSBPermissionListener)
,
ThreadDevice(Context, String, SerialPortParameters)
public ThreadDevice(android.content.Context context, java.lang.String port, com.digi.xbee.api.connection.serial.SerialPortParameters parameters)
ThreadDevice
object for
Android with the given parameters.
This constructor uses the Digi Android Serial Port API based on the RxTx library to communicate with the devices.
context
- The Android application context.port
- Serial port name where XBee device is attached to.parameters
- The serial port parameters.java.lang.NullPointerException
- If context == null
or
if port == null
or
if parameters == null
.ThreadDevice(Context, int)
,
ThreadDevice(Context, int, AndroidUSBPermissionListener)
,
ThreadDevice(Context, String, int)
,
SerialPortParameters