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
Inherited Members
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 |
See Also
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 |
See Also
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 |
See Also
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 |
See Also
Properties
Command
The AT command that generated the response.
Declaration
public ATCommand Command { get; }
Property Value
Type | Description |
---|---|
ATCommand |
See Also
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 |