class XBee::Frames::ATCommandResponse

Attributes

command[RW]
data[RW]
status[RW]

Public Class Methods

new(packet: nil) click to toggle source
Calls superclass method
# File lib/xbee/frames/at_command_response.rb, line 14
def initialize(packet: nil)
        super

        if @parse_bytes
                @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
# File lib/xbee/frames/at_command_response.rb, line 26
def bytes
        super + (command || [0x00] * 2) + [status || 0x00] + (data || [])
end