Class: XBee::Frame::ExplicitRxIndicator
- Inherits:
-
ReceivedFrame
- Object
- Base
- ReceivedFrame
- XBee::Frame::ExplicitRxIndicator
- Defined in:
- lib/apimode/frame/explicit_rx_indicator.rb
Overview
ZigBee Explicit Rx Indicator (0x91) (AO=1)
Instance Attribute Summary collapse
-
#cluster_id ⇒ Object
Returns the value of attribute cluster_id.
-
#destination_endpoint ⇒ Object
Returns the value of attribute destination_endpoint.
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
-
#receive_options ⇒ Object
Returns the value of attribute receive_options.
-
#received_data ⇒ Object
Returns the value of attribute received_data.
-
#source_address ⇒ Object
Returns the value of attribute source_address.
-
#source_endpoint ⇒ Object
Returns the value of attribute source_endpoint.
-
#source_network ⇒ Object
Returns the value of attribute source_network.
Attributes inherited from Base
Instance Method Summary collapse
- #api_identifier ⇒ Object
- #cmd_data=(data_string) ⇒ Object
-
#initialize(data = nil) ⇒ ExplicitRxIndicator
constructor
A new instance of ExplicitRxIndicator.
Methods inherited from Base
Constructor Details
#initialize(data = nil) ⇒ ExplicitRxIndicator
Returns a new instance of ExplicitRxIndicator.
9 10 11 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 9 def initialize(data = nil) super(data) && (yield self if block_given?) end |
Instance Attribute Details
#cluster_id ⇒ Object
Returns the value of attribute cluster_id.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def cluster_id @cluster_id end |
#destination_endpoint ⇒ Object
Returns the value of attribute destination_endpoint.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def destination_endpoint @destination_endpoint end |
#profile_id ⇒ Object
Returns the value of attribute profile_id.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def profile_id @profile_id end |
#receive_options ⇒ Object
Returns the value of attribute receive_options.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def end |
#received_data ⇒ Object
Returns the value of attribute received_data.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def received_data @received_data end |
#source_address ⇒ Object
Returns the value of attribute source_address.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def source_address @source_address end |
#source_endpoint ⇒ Object
Returns the value of attribute source_endpoint.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def source_endpoint @source_endpoint end |
#source_network ⇒ Object
Returns the value of attribute source_network.
7 8 9 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 7 def source_network @source_network end |
Instance Method Details
#api_identifier ⇒ Object
6 |
# File 'lib/apimode/frame/explicit_rx_indicator.rb', line 6 def api_identifier ; 0x91 ; end |
#cmd_data=(data_string) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/apimode/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., self.received_data = data_string.unpack("NNnCCnnCa*") self.source_address = src_high << 32 | src_low @cmd_data = data_string end |