Module: MaxCube::Messages
- Included in:
- Handler
- Defined in:
- lib/maxcube/messages.rb,
lib/maxcube/messages/tcp.rb,
lib/maxcube/messages/udp.rb,
lib/maxcube/messages/parser.rb,
lib/maxcube/messages/handler.rb,
lib/maxcube/messages/serializer.rb,
lib/maxcube/messages/tcp/parser.rb,
lib/maxcube/messages/tcp/type/a.rb,
lib/maxcube/messages/tcp/type/c.rb,
lib/maxcube/messages/tcp/type/f.rb,
lib/maxcube/messages/tcp/type/h.rb,
lib/maxcube/messages/tcp/type/l.rb,
lib/maxcube/messages/tcp/type/m.rb,
lib/maxcube/messages/tcp/type/n.rb,
lib/maxcube/messages/tcp/type/q.rb,
lib/maxcube/messages/tcp/type/s.rb,
lib/maxcube/messages/tcp/type/t.rb,
lib/maxcube/messages/tcp/type/u.rb,
lib/maxcube/messages/tcp/type/z.rb,
lib/maxcube/messages/udp/parser.rb,
lib/maxcube/messages/udp/type/h.rb,
lib/maxcube/messages/udp/type/i.rb,
lib/maxcube/messages/udp/type/n.rb,
lib/maxcube/messages/tcp/handler.rb,
lib/maxcube/messages/udp/handler.rb,
lib/maxcube/messages/tcp/serializer.rb,
lib/maxcube/messages/udp/serializer.rb
Overview
Encapsulates methods related to Cube messages, i.e. parsing and serializing of TCP/UDP messages. It does not provide any network features (this is responsibility of Network.
Defined Under Namespace
Modules: Handler, Parser, Serializer, TCP, UDP Classes: InvalidMessage, InvalidMessageBody, InvalidMessageFormat, InvalidMessageLength, InvalidMessageType
Constant Summary collapse
- DEVICE_MODE =
Device modes that determines geating scheduling.
%i[auto manual vacation boost].freeze
- DEVICE_TYPE =
Device types identified in Cube protocol.
%i[cube radiator_thermostat radiator_thermostat_plus wall_thermostat shutter_contact eco_switch].freeze
- DAYS_OF_WEEK =
Names of days of week in order Cube protocol uses.
%w[Saturday Sunday Monday Tuesday Wednesday Thursday Friday].freeze