public class ZigBeeFrame extends Object
Constructor and Description |
---|
ZigBeeFrame(byte primaryHeader,
byte secondaryHeader,
byte[] payload)
Constructs a ZigBeeFrame object
|
ZigBeeFrame(byte primaryHeader,
byte secondaryHeader,
List<Byte> payload)
Constructs a ZigBeeFrame object
|
ZigBeeFrame(byte primaryHeader,
byte secondaryHeader,
List<Byte> payload,
LocalDateTime timeStamp)
Constructs a ZigBeeFrame object
|
Modifier and Type | Method and Description |
---|---|
List<Byte> |
getPayload()
Returns the payload of this frame.
|
byte |
getPrimaryHeader()
Returns the Primary Header of this frame, which represents the primary grouping
|
byte[] |
getRawPayload()
Returns the pay of this frame.
|
byte |
getSecondaryHeader()
Returns the secondary header of this frame, which represents the actual frame within the primary grouping
|
LocalDateTime |
getTimeStamp()
The Time Stamp Of When This Was Received or Sent out
|
String |
toString() |
public ZigBeeFrame(byte primaryHeader, byte secondaryHeader, List<Byte> payload)
primaryHeader
- The Primary Identifier For The Specific Frame GroupsecondaryHeader
- The Secondary Identifier To The Specific Framepayload
- Payload, without the length byte at the beginning of the frameNullPointerException
- if primaryHeader, secondaryHeader, or payload is nullpublic ZigBeeFrame(byte primaryHeader, byte secondaryHeader, byte[] payload)
primaryHeader
- The Primary Identifier For The Specific Frame GroupsecondaryHeader
- The Secondary Identifier To The Specific Framepayload
- Payload, without the length byte at the beginning of the frameNullPointerException
- if primaryHeader, secondaryHeader, or payload is nullpublic ZigBeeFrame(byte primaryHeader, byte secondaryHeader, List<Byte> payload, LocalDateTime timeStamp)
primaryHeader
- The Primary Identifier For The Specific Frame GroupsecondaryHeader
- The Secondary Identifier To the Specific Framepayload
- Payload, without the length byte at the beginning of the frameNullPointerException
- if primaryheader, secondaryHeader, payload or localdatetime is nullpublic byte getPrimaryHeader()
public byte getSecondaryHeader()
getPrimaryHeader()
public List<Byte> getPayload()
public byte[] getRawPayload()
getPayload()
public LocalDateTime getTimeStamp()
Copyright © 2021. All rights reserved.