module MaxCube::Messages::TCP::Serializer::MessageN
Command to set the Cube into pairing mode with optional timeout
in seconds.
Constants
- OPT_KEYS
Optional hash keys.
Private Instance Methods
serialize_tcp_n(hash)
click to toggle source
# File lib/maxcube/messages/tcp/type/n.rb, line 38 def serialize_tcp_n(hash) return '' unless hash.key?(:timeout) format('%04x', to_int(0, 'timeout', hash[:timeout])) end