class XBee::Frames::TransmitStatus
When a Transmit Request (0x10, 0x11) completes, the device sends a Transmit Status message out of the serial interface. This message indicates if the Transmit Request was successful or if it failed.
Constants
- DELIVERY_STATUSES
- DISCOVERY_STATUSES
Attributes
address16[RW]
delivery_status[RW]
discovery_status[RW]
retry_count[RW]
Public Class Methods
new(packet: nil)
click to toggle source
Calls superclass method
XBee::Frames::IdentifiedFrame::new
# File lib/xbee/frames/transmit_status.rb, line 46 def initialize(packet: nil) super if @parse_bytes @address16 = Address16.new *@parse_bytes.shift(2) @retry_count = @parse_bytes.shift @delivery_status = @parse_bytes.shift @discovery_status = @parse_bytes.shift end end
Public Instance Methods
bytes()
click to toggle source
Calls superclass method
XBee::Frames::IdentifiedFrame#bytes
# File lib/xbee/frames/transmit_status.rb, line 58 def bytes super + (address16 || [0xff, 0xfd]).to_a + [retry_count || 0x00] + [delivery_status || 0x00] + [discovery_status || 0x00] end