Sha256: ad0680f2716924830f3009742e678b46b2cb184dc282cb0d09c9eda6f71c0c2a
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
#!/usr/bin/env ruby #~ $LOAD_PATH << '.' require 'logger' require 'socket' require 'thread' require 'timeout' require_relative 'version' # String encoding monkey patch for Ruby 1.8 unless String.method_defined?(:force_encoding) require 'patches/string_encoding.rb' end module MQTT # Default port number for unencrypted connections DEFAULT_PORT = 1883 # Default port number for TLS/SSL encrypted connections DEFAULT_SSL_PORT = 8883 # Super-class for other MQTT related exceptions class Exception < ::Exception end # A ProtocolException will be raised if there is a # problem with data received from a remote host class ProtocolException < MQTT::Exception end # A NotConnectedException will be raised when trying to # perform a function but no connection has been # established class NotConnectedException < MQTT::Exception end autoload :Client, 'mqttbridge/client' autoload :Packet, 'mqttbridge/packet' autoload :Proxy, 'mqttbridge/proxy' # MQTT-SN module SN # Default port number for unencrypted connections DEFAULT_PORT = 1883 # A ProtocolException will be raised if there is a # problem with data received from a remote host class ProtocolException < MQTT::Exception end autoload :Packet, 'sn/packet' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yalgaar-1.0.2 | lib/mqttbridge/mqtt.rb |
yalgaar-1.0.1 | lib/mqttbridge/mqtt.rb |