XBee C# library API reference

Show / Hide Table of Contents

Class UnknownXBeePacket

This class represents an unknown XBee packet where the payload is set as a byte array without a defined structure.

Inheritance
System.Object
XBeePacket
XBeeAPIPacket
UnknownXBeePacket
Inherited Members
XBeeAPIPacket.NO_FRAME_ID
XBeeAPIPacket.FrameID
XBeeAPIPacket.FrameType
XBeeAPIPacket.FrameTypeValue
XBeeAPIPacket.APIData
XBeeAPIPacket.PacketParameters
XBeeAPIPacket.CheckFrameID(Int32)
XBeeAPIPacket.GetPacketData()
XBeePacket.PacketLength
XBeePacket.Checksum
XBeePacket.Parameters
XBeePacket.GenerateByteArray()
XBeePacket.GenerateByteArrayEscaped()
XBeePacket.ToString()
XBeePacket.ToPrettyString()
XBeePacket.ParsePacket(String, OperatingMode)
XBeePacket.ParsePacket(Byte[], OperatingMode)
XBeePacket.Equals(Object)
XBeePacket.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: XBeeLibrary.Core.Packet
Assembly: XBeeLibrary.Core.dll
Syntax
public class UnknownXBeePacket : XBeeAPIPacket

Constructors

UnknownXBeePacket(Byte[])

Class constructor. Instantiates a new UnknownXBeePacket object with the given parameters.

Declaration
public UnknownXBeePacket(byte[] rfData)
Parameters
Type Name Description
System.Byte[] rfData

The XBee RF Data.

UnknownXBeePacket(Byte[], Byte)

Class constructor. Instantiates a new UnknownXBeePacket object with the given parameters.

Declaration
public UnknownXBeePacket(byte[] rfData, byte origApiFrameType)
Parameters
Type Name Description
System.Byte[] rfData

The XBee RF Data.

System.Byte origApiFrameType

The original API frame type.

Properties

APIPacketParameters

Gets a map with the XBee packet parameters and their values.

Declaration
protected override LinkedDictionary<string, string> APIPacketParameters { get; }
Property Value
Type Description
LinkedDictionary<System.String, System.String>

A sorted map containing the XBee packet parameters with their values.

Overrides
XBeeAPIPacket.APIPacketParameters

APIPacketSpecificData

A sorted dictionary with the packet parameters and their values.

Declaration
protected override byte[] APIPacketSpecificData { get; }
Property Value
Type Description
System.Byte[]
Overrides
XBeeAPIPacket.APIPacketSpecificData

IsBroadcast

Indicates whether the packet is a broadcast packet.

Declaration
public override bool IsBroadcast { get; }
Property Value
Type Description
System.Boolean
Overrides
XBeeAPIPacket.IsBroadcast

NeedsAPIFrameID

Indicates whether the API packet needs API Frame ID or not.

Declaration
public override bool NeedsAPIFrameID { get; }
Property Value
Type Description
System.Boolean
Overrides
XBeeAPIPacket.NeedsAPIFrameID

RFData

The received RF data.

Declaration
public byte[] RFData { get; set; }
Property Value
Type Description
System.Byte[]

Methods

CreatePacket(Byte[])

Creates a new UnknownXBeePacket object from the given payload.

Declaration
public static UnknownXBeePacket CreatePacket(byte[] payload)
Parameters
Type Name Description
System.Byte[] payload

The API frame payload. It must start with the frame type corresponding to an Unknown packet (0xFF). The byte array must be in API mode.

Returns
Type Description
UnknownXBeePacket

Parsed Unknown packet.

Exceptions
Type Condition
System.ArgumentException

If payload.length < XBeeLibrary.Core.Packet.UnknownXBeePacket.MIN_API_PAYLOAD_LENGTH.

System.ArgumentNullException

If payload == null.

See Also

XBeeAPIPacket
Product page More documentation Official site About Digi Contact us Support
©2019 Digi International Inc. All rights reserved.
Digi International Inc.