XBee C# library API reference

Show / Hide Table of Contents

Class IODataSampleRxIndicatorPacket

This class represents an IO Data Sample RX Indicator packet. Packet is built using the parameters of the constructor or providing a valid API payload.

Inheritance
System.Object
XBeePacket
XBeeAPIPacket
IODataSampleRxIndicatorPacket
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.Common
Assembly: XBeeLibrary.Core.dll
Syntax
public class IODataSampleRxIndicatorPacket : XBeeAPIPacket
Remarks

When the module receives an IO sample frame from a remote device, it sends the sample out the UART using this frame type (when AO= 0). Only modules running API firmware will send IO samples out the UART.

Among received data, some options can also be received indicating transmission parameters.

Constructors

IODataSampleRxIndicatorPacket(XBee64BitAddress, XBee16BitAddress, Byte, Byte[])

Class constructor. Instantiates a IODataSampleRxIndicatorPacket with the given parameters.

Declaration
public IODataSampleRxIndicatorPacket(XBee64BitAddress sourceAddress64, XBee16BitAddress sourceAddress16, byte receiveOptions, byte[] rfData)
Parameters
Type Name Description
XBee64BitAddress sourceAddress64

The 64-bit address of the sender.

XBee16BitAddress sourceAddress16

The 16-bit address of the sender.

System.Byte receiveOptions

The receive options.

System.Byte[] rfData

The received RF data.

Exceptions
Type Condition
System.ArgumentException

If receiveOptions < 0 or if receiveOptions > 255.

System.ArgumentNullException

If sourceAddress64 is null or if sourceAddress16 is null.

See Also
XBeeReceiveOptions
XBee16BitAddress
XBee64BitAddress

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

Gets the XBee API packet specific data.

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

This does not include the frame ID if it is needed.

IOSample

The IO sample corresponding to the data contained in the packet.

Declaration
public IOSample IOSample { get; }
Property Value
Type Description
IOSample
See Also
IOSample

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

ReceiveOptions

The receive options bitfield.

Declaration
public byte ReceiveOptions { get; }
Property Value
Type Description
System.Byte

RFData

The received RF data.

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

SourceAddress16

The 16-bit sender/source address.

Declaration
public XBee16BitAddress SourceAddress16 { get; }
Property Value
Type Description
XBee16BitAddress
See Also
XBee16BitAddress

SourceAddress64

The 64-bit sender/source address.

Declaration
public XBee64BitAddress SourceAddress64 { get; }
Property Value
Type Description
XBee64BitAddress
See Also
XBee64BitAddress

Methods

CreatePacket(Byte[])

Creates a new IODataSampleRxIndicatorPacket object from the given payload.

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

The API frame payload. It must start with the frame type corresponding to an IO Data Sample RX Indicator packet (0x92). The byte array must be in API mode.

Returns
Type Description
IODataSampleRxIndicatorPacket

Parsed IO Data Sample RX Indicator packet.

Exceptions
Type Condition
System.ArgumentException

If payload[0] != APIFrameType.IO_DATA_SAMPLE_RX_INDICATOR.GetValue() or if payload.Length < XBeeLibrary.Core.Packet.Common.IODataSampleRxIndicatorPacket.MIN_API_PAYLOAD_LENGTH.

System.ArgumentNullException

If payload == null.

See Also

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