public class RemoteRaw802Device extends RemoteXBeeDevice
Constructor and Description |
---|
RemoteRaw802Device(Raw802Device localXBeeDevice,
XBee16BitAddress addr16)
Class constructor.
|
RemoteRaw802Device(Raw802Device localXBeeDevice,
XBee64BitAddress addr64)
Class constructor.
|
RemoteRaw802Device(XBeeDevice localXBeeDevice,
XBee16BitAddress addr16)
Class constructor.
|
RemoteRaw802Device(XBeeDevice localXBeeDevice,
XBee64BitAddress addr64,
XBee16BitAddress addr16,
String id)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
AssociationIndicationStatus |
getAssociationIndicationStatus()
Returns the current association status of this XBee device.
|
XBeeProtocol |
getXBeeProtocol()
Returns the XBee Protocol of this XBee device.
|
void |
set16BitAddress(XBee16BitAddress xbee16BitAddress)
Configures the 16-bit address (network address) of this XBee device with
the provided one.
|
void |
set64BitAddress(XBee64BitAddress addr64)
Sets the XBee64BitAddress of this remote 802.15.4 device.
|
isRemote, reset, toString
applyChanges, 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, writeChanges
public RemoteRaw802Device(Raw802Device localXBeeDevice, XBee16BitAddress addr16)
RemoteRaw802Device
object
with the given local Raw802Device
which contains the connection
interface to be used.localXBeeDevice
- The local 802.15.4 device that will behave as
connection interface to communicate with this
remote 802.15.4 device.addr16
- The 16-bit address to identify this remote 802.15.4
device.NullPointerException
- if localXBeeDevice == null
or
if addr16 == null
.XBee16BitAddress
public RemoteRaw802Device(Raw802Device localXBeeDevice, XBee64BitAddress addr64)
RemoteRaw802Device
object
with the given local Raw802Device
which contains the connection
interface to be used.localXBeeDevice
- The local 802.15.4 device that will behave as
connection interface to communicate with this
remote 802.15.4 device.addr64
- The 64-bit address to identify this remote 802.15.4 device.IllegalArgumentException
- if localXBeeDevice.isRemote() == true
.NullPointerException
- if localXBeeDevice == null
or
if addr64 == null
.XBee64BitAddress
public RemoteRaw802Device(XBeeDevice localXBeeDevice, XBee16BitAddress addr16)
RemoteRaw802Device
object
interface to be used.localXBeeDevice
- The local 802.15.4 device that will behave as
connection interface to communicate with this
remote 802.15.4 device.addr16
- The 16-bit address to identify this remote 802.15.4
device.IllegalArgumentException
- if localXBeeDevice.getXBeeProtocol() != XBeeProtocol.RAW_802_15_4
.NullPointerException
- if localXBeeDevice == null
or
if addr16 == null
.XBee16BitAddress
public RemoteRaw802Device(XBeeDevice localXBeeDevice, XBee64BitAddress addr64, XBee16BitAddress addr16, String id)
RemoteRaw802Device
object
with the given local XBeeDevice
which contains the connection
interface to be used.localXBeeDevice
- The local XBee device that will behave as
connection interface to communicate with this
remote 802.15.4 device.addr64
- The 64-bit address to identify this remote 802.15.4 device.addr16
- The 16-bit address to identify this remote 802.15.4 device.
It might be null
.id
- The node identifier of this remote 802.15.4 device. It might be
null
.IllegalArgumentException
- if localXBeeDevice.isRemote() == true
or
if localXBeeDevice.getXBeeProtocol() != XBeeProtocol.RAW_802_15_4
NullPointerException
- if localXBeeDevice == null
or
if addr64 == null
.XBee16BitAddress
,
XBee64BitAddress
public AssociationIndicationStatus getAssociationIndicationStatus() throws TimeoutException, XBeeException
AbstractXBeeDevice
It indicates occurrences of errors during the last association request.
TimeoutException
- if there is a timeout getting the association
indication status.XBeeException
- if there is any other XBee related exception.AbstractXBeeDevice.forceDisassociate()
,
AssociationIndicationStatus
public XBeeProtocol getXBeeProtocol()
AbstractXBeeDevice
To refresh this value use the AbstractXBeeDevice.readDeviceInfo()
method.
getXBeeProtocol
in class AbstractXBeeDevice
XBeeProtocol
public void set16BitAddress(XBee16BitAddress xbee16BitAddress) throws TimeoutException, XBeeException
AbstractXBeeDevice
xbee16BitAddress
- The new 16-bit address.TimeoutException
- if there is a timeout setting the address.XBeeException
- if there is any other XBee related exception.AbstractXBeeDevice.get16BitAddress()
,
XBee16BitAddress
public void set64BitAddress(XBee64BitAddress addr64)
addr64
- The 64-bit address to be set to the device.XBee64BitAddress
© Copyright 2014–2014 Digi International Inc. All rights reserved.