public class DigiPointDevice extends XBeeDevice
XBeeDevice, 
DigiMeshDevice, 
Raw802Device, 
ZigBeeDevice| Constructor and Description | 
|---|
DigiPointDevice(IConnectionInterface connectionInterface)
Class constructor. 
 | 
DigiPointDevice(String port,
               int baudRate)
Class constructor. 
 | 
DigiPointDevice(String port,
               int baudRate,
               int dataBits,
               int stopBits,
               int parity,
               int flowControl)
Class constructor. 
 | 
DigiPointDevice(String port,
               SerialPortParameters serialPortParameters)
Class constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
XBeeNetwork | 
getNetwork()
Returns the network associated with this XBee device. 
 | 
XBeeProtocol | 
getXBeeProtocol()
Returns the XBee Protocol of this XBee device. 
 | 
void | 
open()
Opens the connection interface associated with this XBee device. 
 | 
void | 
sendDataAsync(XBee64BitAddress address64Bit,
             XBee16BitAddress address16bit,
             byte[] data)
Sends asynchronously the provided data to the XBee device of the network 
 corresponding to the given 64-bit/16-bit address. 
 | 
addDataListener, addIOSampleListener, addModemStatusListener, addPacketListener, close, getOperatingMode, getReceiveTimeout, isOpen, isRemote, readData, readData, readDataFrom, readDataFrom, removeDataListener, removeIOSampleListener, removeModemStatusListener, removePacketListener, reset, sendBroadcastData, sendData, sendDataAsync, sendPacket, sendPacket, sendPacketAsync, setReceiveTimeout, toStringapplyChanges, enableApplyConfigurationChanges, executeParameter, get16BitAddress, get64BitAddress, getADCValue, getConnectionInterface, getDestinationAddress, getDIOChangeDetection, getDIOValue, getFirmwareVersion, getHardwareVersion, getIOConfiguration, getIOSamplingRate, getNodeID, getPANID, getParameter, getPowerLevel, getPWMDutyCycle, isApplyConfigurationChangesEnabled, readDeviceInfo, readIOSample, setDestinationAddress, setDIOChangeDetection, setDIOValue, setIOConfiguration, setIOSamplingRate, setNodeID, setPANID, setParameter, setPowerLevel, setPWMDutyCycle, updateDeviceDataFrom, writeChangespublic DigiPointDevice(IConnectionInterface connectionInterface)
DigiPointDevice object with the 
 given connection interface.connectionInterface - The connection interface with the physical 
                            point-to-multipoint device.NullPointerException - if connectionInterface == nullIConnectionInterfacepublic DigiPointDevice(String port, int baudRate)
DigiPointDevice object in the 
 given port name and baud rate.port - Serial port name where point-to-multipoint device is attached to.baudRate - Serial port baud rate to communicate with the device. 
                 Other connection parameters will be set as default (8 
                 data bits, 1 stop bit, no parity, no flow control).IllegalArgumentException - if baudRate < 0.NullPointerException - if port == null.public DigiPointDevice(String port, int baudRate, int dataBits, int stopBits, int parity, int flowControl)
DigiPointDevice object in the 
 given serial port name and settings.port - Serial port name where point-to-multipoint device is attached to.baudRate - Serial port baud rate to communicate with the device.dataBits - Serial port data bits.stopBits - Serial port data bits.parity - Serial port data bits.flowControl - Serial port data bits.IllegalArgumentException - if baudRate < 0 or
                                  if dataBits < 0 or
                                  if stopBits < 0 or
                                  if parity < 0 or
                                  if flowControl < 0.NullPointerException - if port == null.public DigiPointDevice(String port, SerialPortParameters serialPortParameters)
DigiPointDevice object in the 
 given serial port name and parameters.port - Serial port name where point-to-multipoint device is attached to.serialPortParameters - Object containing the serial port parameters.NullPointerException - if port == null or
                              if serialPortParameters == null.SerialPortParameterspublic XBeeNetwork getNetwork()
XBeeDevicegetNetwork in class XBeeDeviceXBeeNetworkpublic XBeeProtocol getXBeeProtocol()
AbstractXBeeDeviceTo refresh this value use the AbstractXBeeDevice.readDeviceInfo() method.
getXBeeProtocol in class AbstractXBeeDeviceXBeeProtocolpublic void open() throws XBeeException
XBeeDeviceWhen opening the device an information reading process is automatically performed. This includes:
open in class XBeeDeviceXBeeException - if there is any problem opening this device 
                       connection.XBeeDevice.close(), 
XBeeDevice.isOpen()public void sendDataAsync(XBee64BitAddress address64Bit, XBee16BitAddress address16bit, byte[] data) throws XBeeException
XBeeDeviceAsynchronous transmissions do not wait for answer from the remote device or for transmit status packet.
address64Bit - The 64-bit address of the XBee that will receive the 
                     data.address16bit - The 16-bit address of the XBee that will receive the 
                     data. If it is unknown the 
                     XBee16BitAddress.UNKNOWN_ADDRESS must be 
                     used.data - Byte array containing the data to be sent.XBeeException - if a remote device is trying to send data or 
                       if there is any other XBee related exception.XBeeDevice.getReceiveTimeout(), 
XBeeDevice.setReceiveTimeout(int), 
XBeeDevice.sendData(RemoteXBeeDevice, byte[]), 
XBeeDevice.sendData(XBee64BitAddress, byte[]), 
XBeeDevice.sendData(XBee64BitAddress, XBee16BitAddress, byte[]), 
XBeeDevice.sendDataAsync(RemoteXBeeDevice, byte[]), 
XBeeDevice.sendDataAsync(XBee64BitAddress, byte[]), 
XBee16BitAddress, 
XBee64BitAddress© Copyright 2014–2014 Digi International Inc. All rights reserved.