class XBee::Frames::ATCommand

Use this frame to query or set device parameters on the local device. This API command applies changes after running the command. You can query parameter values by sending the 0x08 AT Command frame with no parameter value field (the two-byte AT command is immediately followed by the frame checksum).

Attributes

command_bytes[RW]
parameter_bytes[RW]

attr_accessor :command

Public Class Methods

new(packet: nil) click to toggle source

attr_accessor :parameter

Calls superclass method
# File lib/xbee/frames/at_command.rb, line 19
def initialize(packet: nil)
        super

        if @parse_bytes
                @command_bytes = @parse_bytes.shift 2
                @parameter_bytes = @parse_bytes
                @parse_bytes = []
        end
end

Public Instance Methods

bytes() click to toggle source
Calls superclass method
# File lib/xbee/frames/at_command.rb, line 30
def bytes
        super + command_bytes + (parameter_bytes || [])
end