Module: MaxCube::Messages::UDP::Parser::MessageI
- Defined in:
- lib/maxcube/messages/udp/type/i.rb
Overview
Identify message. It can be used in broadcast.
Constant Summary
- KEYS =
Mandatory keys.
(Parser::KEYS + %i[unknown rf_address firmware_version]).freeze
Instance Method Summary collapse
- #parse_udp_i(_body) ⇒ Object private
Instance Method Details
#parse_udp_i(_body) ⇒ Object (private)
15 16 17 18 19 20 21 |
# File 'lib/maxcube/messages/udp/type/i.rb', line 15 def parse_udp_i(_body) { unknown: read(1), rf_address: read(3, true), firmware_version: read(2, 'H*'), } end |