Module: MQTT

Defined in:
lib/mqtt/client.rb,
lib/mqtt.rb,
lib/mqtt/proxy.rb,
lib/mqtt/packet.rb,
lib/mqtt/version.rb,
lib/mqtt/sn/packet.rb

Overview

Client class for talking to an MQTT server

Defined Under Namespace

Modules: SN Classes: Client, Exception, NotConnectedException, Packet, ProtocolException, Proxy

Constant Summary collapse

DEFAULT_PORT =

Default port number for unencrypted connections

1883
DEFAULT_SSL_PORT =

Default port number for TLS/SSL encrypted connections

8883
PACKET_TYPES =

An enumeration of the MQTT packet types

[
  nil,
  MQTT::Packet::Connect,
  MQTT::Packet::Connack,
  MQTT::Packet::Publish,
  MQTT::Packet::Puback,
  MQTT::Packet::Pubrec,
  MQTT::Packet::Pubrel,
  MQTT::Packet::Pubcomp,
  MQTT::Packet::Subscribe,
  MQTT::Packet::Suback,
  MQTT::Packet::Unsubscribe,
  MQTT::Packet::Unsuback,
  MQTT::Packet::Pingreq,
  MQTT::Packet::Pingresp,
  MQTT::Packet::Disconnect,
  nil
]
VERSION =

The version number of the MQTT gem

'0.6.0'