class XBee::Frames::ModemStatus
Constants
- STATUSES
Attributes
status[RW]
Public Class Methods
new(packet: nil)
click to toggle source
Calls superclass method
XBee::Frames::Frame::new
# File lib/xbee/frames/modem_status.rb, line 24 def initialize(packet: nil) super if @parse_bytes @status = @parse_bytes.shift end end
Public Instance Methods
bytes()
click to toggle source
Calls superclass method
XBee::Frames::Frame#bytes
# File lib/xbee/frames/modem_status.rb, line 42 def bytes super + [status || 0x00] end
status_string()
click to toggle source
# File lib/xbee/frames/modem_status.rb, line 33 def status_string if status < 0x80 STATUSES[status] else 'Ember ZigBee stack error' end end