public final class XBee16BitAddress extends Object
This address is only applicable for:
DigiMesh and Point-to-Multipoint protocols don't support 16-bit addressing.
Each device has its own 16-bit address which is unique in the network. It is automatically assigned when the radio joins the network for ZigBee and ZNet 2.5, and manually configured in 802.15.4 radios.
Modifier and Type | Field and Description |
---|---|
static XBee16BitAddress |
BROADCAST_ADDRESS
16-bit broadcast address (value: FFFF).
|
static XBee16BitAddress |
COORDINATOR_ADDRESS
16-bit address reserved for the coordinator (value: 0000).
|
static XBee16BitAddress |
UNKNOWN_ADDRESS
16-bit unknown address (value: FFFE).
|
Constructor and Description |
---|
XBee16BitAddress(byte[] address)
Class constructor.
|
XBee16BitAddress(int hsb,
int lsb)
Class constructor.
|
XBee16BitAddress(String address)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getHsb()
Returns the address high significant byte.
|
int |
getLsb()
Returns the address low significant byte.
|
byte[] |
getValue()
Returns the 16-bit address value in byte array format.
|
int |
hashCode() |
String |
toString() |
public static final XBee16BitAddress BROADCAST_ADDRESS
public static final XBee16BitAddress COORDINATOR_ADDRESS
public static final XBee16BitAddress UNKNOWN_ADDRESS
public XBee16BitAddress(byte[] address)
XBee16BitAddress
with the given parameters.address
- The 16-bit address as byte array.IllegalArgumentException
- if address.length < 1
or
if address.length > 2
.NullPointerException
- if address == null
.public XBee16BitAddress(int hsb, int lsb)
XBee16BitAddress
with the given parameters.hsb
- High significant byte of the address.lsb
- Low significant byte of the address.IllegalArgumentException
- if hsb > 255
or
if hsb < 0
or
if lsb > 255
or
if lsb < 0
.public XBee16BitAddress(String address)
XBee16BitAddress
with the given parameters.
The string must be the hexadecimal representation of a 16-bit address.
address
- String containing the 16-bit address.IllegalArgumentException
- if address.length() < 1
or
if address
contains
non-hexadecimal characters and is longer
than 8 bytes.NullPointerException
- if address == null
.public int getHsb()
public int getLsb()
public byte[] getValue()
© Copyright 2014–2014 Digi International Inc. All rights reserved.