class XBeeRuby::TxResponse
Attributes
address16[R]
delivery_status[R]
discovery_status[R]
frame_id[R]
retry_count[R]
Public Class Methods
new(bytes)
click to toggle source
# File lib/xbee-ruby/tx_response.rb, line 25 def initialize bytes @frame_id = bytes[1] @address16 = Address16.new *bytes[2..3] @retry_count = bytes[4] @delivery_status = bytes[5] @discovery_status = bytes[6] end
Public Instance Methods
==(other)
click to toggle source
# File lib/xbee-ruby/tx_response.rb, line 33 def == other other.class == TxResponse && self.address16 == other.address16 && self.retry_count == other.retry_count && self.delivery_status == other.delivery_status && self.discovery_status == other.discovery_status end
to_s()
click to toggle source
# File lib/xbee-ruby/tx_response.rb, line 39 def to_s "TxResponse[#{super}](address16=0x#{address16}, retry_count=#{retry_count}, " + "delivery_status=#{delivery_status}, discovery_status=#{discovery_status})" end