class XBee::Frames::RemoteATCommandResponse

If a device receives this frame in response to a Remote Command Request (0x17) frame, the device sends an AT Command Response (0x97) frame out the serial interface. Some commands, such as the ND command, may send back multiple frames.

Constants

STATUS

Possible values for status

Attributes

at_command[RW]
data[RW]
status[RW]

Public Class Methods

new(packet: nil) click to toggle source
Calls superclass method XBee::Frames::AddressedFrame::new
# File lib/xbee/frames/remote_at_command_response.rb, line 27
def initialize(packet: nil)
        super

        if @parse_bytes
                @at_command = @parse_bytes.shift 2
                @status = @parse_bytes.shift
                @data = @parse_bytes
                @parse_bytes = []
        end
end

Public Instance Methods

bytes() click to toggle source
Calls superclass method XBee::Frames::AddressedFrame#bytes
# File lib/xbee/frames/remote_at_command_response.rb, line 39
def bytes
        super + (command || [0x00] * 2) + [status || 0x00] + (data || [])
end