XBee C# library API reference

Show / Hide Table of Contents

Class ATCommandResponse

This class represents the response of an AT Command sent by the connected XBee device or by a remote device after executing an AT Command.

Inheritance
System.Object
ATCommandResponse
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public class ATCommandResponse
Remarks

Among the executed command, this object contains the response data and the command status.

Constructors

ATCommandResponse(ATCommand)

Initializes a new instance of the class ATCommandResponse.

Declaration
public ATCommandResponse(ATCommand command)
Parameters
Type Name Description
ATCommand command

The ATCommand that generated the response.

Exceptions
Type Condition
System.ArgumentNullException

If command is null.

See Also
ATCommand

ATCommandResponse(ATCommand, Byte[])

Initializes a new instance of the class ATCommandResponse.

Declaration
public ATCommandResponse(ATCommand command, byte[] response)
Parameters
Type Name Description
ATCommand command

The ATCommand that generated the response.

System.Byte[] response

The command response in byte array format.

Exceptions
Type Condition
System.ArgumentNullException

if command is null.

See Also
ATCommand

ATCommandResponse(ATCommand, Byte[], ATCommandStatus)

Initializes a new instance of the class ATCommandResponse.

Declaration
public ATCommandResponse(ATCommand command, byte[] response, ATCommandStatus status)
Parameters
Type Name Description
ATCommand command

The ATCommand that generated the response.

System.Byte[] response

The command response in byte array format.

ATCommandStatus status

The ATCommandStatus containing the response status.

Exceptions
Type Condition
System.ArgumentNullException

if command is null.

See Also
ATCommand
ATCommandStatus

ATCommandResponse(ATCommand, ATCommandStatus)

Initializes a new instance of the class ATCommandResponse.

Declaration
public ATCommandResponse(ATCommand command, ATCommandStatus status)
Parameters
Type Name Description
ATCommand command

The ATCommand that generated the response.

ATCommandStatus status

The ATCommandStatus containing the response status.

Exceptions
Type Condition
System.ArgumentNullException

If command is null.

See Also
ATCommand
ATCommandStatus

Properties

Command

The AT command that generated the response.

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

Response

The AT command response data in byte array format, if any.

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

ResponseString

The AT command response data as string, if any.

Declaration
public string ResponseString { get; }
Property Value
Type Description
System.String

Status

The AT command status of the response.

Declaration
public ATCommandStatus Status { get; }
Property Value
Type Description
ATCommandStatus

See Also

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