class XBeeRuby::RxResponse

Attributes

address16[R]
address64[R]
data[R]
receive_options[R]

Public Class Methods

new(bytes) click to toggle source
# File lib/xbee-ruby/rx_response.rb, line 25
def initialize bytes
        @address64 = Address64.new *bytes[1..8]
        @address16 = Address16.new *bytes[9..10]
        @receive_options = bytes[11]
        @data = bytes[12..-1]
end

Public Instance Methods

==(other) click to toggle source
# File lib/xbee-ruby/rx_response.rb, line 32
def == other
        other.class == RxResponse && self.address64 == other.address64 &&
                        self.address16 == other.address16 && self.receive_options == other.receive_options
end
to_s() click to toggle source
# File lib/xbee-ruby/rx_response.rb, line 37
def to_s
        "RxResponse[#{super}](address64=0x#{address64}, address16=0x#{address16}, receive_otions=#{receive_options})"
end