class XBee::Frame::ExplicitRxIndicator
ZigBee Explicit Rx Indicator (0x91) (AO=1)
Attributes
cluster_id[RW]
destination_endpoint[RW]
profile_id[RW]
receive_options[RW]
received_data[RW]
source_address[RW]
source_endpoint[RW]
source_network[RW]
Public Class Methods
new(data = nil) { |self| ... }
click to toggle source
Calls superclass method
# File lib/ruxbee/frame/explicit_rx_indicator.rb, line 9 def initialize(data = nil) super(data) && (yield self if block_given?) end
Public Instance Methods
api_identifier()
click to toggle source
# File lib/ruxbee/frame/explicit_rx_indicator.rb, line 6 def api_identifier ; 0x91 ; end
cmd_data=(data_string)
click to toggle source
# File lib/ruxbee/frame/explicit_rx_indicator.rb, line 13 def cmd_data=(data_string) # We need to read in the 64-bit source_address in two 32-bit parts. src_high = src_low = 0 src_high, src_low, self.source_network, self.source_endpoint, self.destination_endpoint, self.cluster_id, self.profile_id, self.receive_options, self.received_data = data_string.unpack("NNnCCnnCa*") self.source_address = src_high << 32 | src_low @cmd_data = data_string end