XBee C# library API reference

Show / Hide Table of Contents

Class BluetoothUnlockResponsePacket

This class represents a Bluetooth Unlock Response packet.

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

Constructors

BluetoothUnlockResponsePacket(SrpError)

Class constructor. Instantiates a BluetoothUnlockResponsePacket packet with the given parameters.

Declaration
public BluetoothUnlockResponsePacket(SrpError error)
Parameters
Type Name Description
SrpError error

SRP error

See Also
SrpError

BluetoothUnlockResponsePacket(SrpPhase, Byte[])

Class constructor. Instantiates a BluetoothUnlockResponsePacket packet with the given parameters.

Declaration
public BluetoothUnlockResponsePacket(SrpPhase phase, byte[] data)
Parameters
Type Name Description
SrpPhase phase

The SRP phase.

System.Byte[] data

The data.

Exceptions
Type Condition
System.ArgumentException

If phase is UNKNOWN.

System.ArgumentNullException

If data is null.

See Also
SrpPhase

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.

Data

The SRP data.

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

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

SrpError

The SRP error, if any.

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

SrpPhase

The SRP Phase.

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

Methods

CreatePacket(Byte[])

Creates a new BluetoothUnlockResponsePacket object from the given payload.

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

The API frame payload. It must start with the frame type corresponding to a Bluetooth Unlock Response packet (0xAC). The byte array must be in API mode.

Returns
Type Description
BluetoothUnlockResponsePacket

Parsed Bluetooth Unlock packet.

Exceptions
Type Condition
System.ArgumentException

If payload[0] != APIFrameType.BLE_UNLOCK_RESPONSE.GetValue() or if payload.Length < XBeeLibrary.Core.Packet.Bluetooth.BluetoothUnlockResponsePacket.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.