public class ExplicitXBeeMessage extends XBeeMessage
This class is used within the XBee Java Library to read explicit data sent by remote devices.
| Constructor and Description |
|---|
ExplicitXBeeMessage(RemoteXBeeDevice remoteXBeeDevice,
int sourceEndpoint,
int destEndpoint,
int clusterID,
int profileID,
byte[] data)
Class constructor.
|
ExplicitXBeeMessage(RemoteXBeeDevice remoteXBeeDevice,
int sourceEndpoint,
int destEndpoint,
int clusterID,
int profileID,
byte[] data,
boolean isBroadcast)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getClusterID()
Returns the cluster ID the packet was addressed to.
|
int |
getDestinationEndpoint()
Returns the endpoint of the destination the message was addressed to.
|
int |
getProfileID()
Returns the profile ID the packet was addressed to.
|
int |
getSourceEndpoint()
Returns the endpoint of the source that initiated the transmission.
|
getData, getDataString, getDevice, isBroadcastpublic ExplicitXBeeMessage(RemoteXBeeDevice remoteXBeeDevice, int sourceEndpoint, int destEndpoint, int clusterID, int profileID, byte[] data)
ExplicitXBeeMessage with the given parameters.remoteXBeeDevice - The remote XBee device the message belongs to.
(device that sent the message)sourceEndpoint - Endpoint of the source that initiated the
transmission.destEndpoint - Endpoint of the destination the message was
addressed to.clusterID - Cluster ID the packet was addressed to.profileID - Profile ID the packet was addressed to.data - Byte array containing the data of the message.IllegalArgumentException - if sourceEndpoint < 0 or
if sourceEndpoint > 0xFF or
if destEndpoint < 0 or
if destEndpoint > 0xFF or
if clusterID < 0 or
if clusterID > 0xFFFF or
if profileID < 0 or
if profileID > 0xFFFF.NullPointerException - if remoteXBeeDevice == null or
if data == null.RemoteXBeeDevicepublic ExplicitXBeeMessage(RemoteXBeeDevice remoteXBeeDevice, int sourceEndpoint, int destEndpoint, int clusterID, int profileID, byte[] data, boolean isBroadcast)
XBeeMessage with the given parameters.remoteXBeeDevice - The remote XBee device the message belongs to.
(device that sent the message)sourceEndpoint - Endpoint of the source that initiated the
transmission.destEndpoint - Endpoint of the destination the message was
addressed to.clusterID - Cluster ID the packet was addressed to.profileID - Profile ID the packet was addressed to.data - Byte array containing the data of the message.isBroadcast - Indicates if the message was received via broadcast.IllegalArgumentException - if sourceEndpoint < 0 or
if sourceEndpoint > 0xFF or
if destEndpoint < 0 or
if destEndpoint > 0xFF or
if clusterID < 0 or
if clusterID > 0xFFFF or
if profileID < 0 or
if profileID > 0xFFFF.NullPointerException - if remoteXBeeDevice == null or
if data == null.RemoteXBeeDevicepublic int getClusterID()
public int getDestinationEndpoint()
public int getProfileID()
public int getSourceEndpoint()
© Copyright 2014?2015 Digi International Inc. All rights reserved.