mqtt-sub_handler 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mqtt/sub_handler.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeda8a3940aba680c0036a48c9dc32d1ccaeeb43
|
4
|
+
data.tar.gz: 46e68dda437bada4ed2a64580c626c2a8cff4c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f60c62b4cdd8459e1ce224d201ed22ab05c6348a4e8b10a31aa807d773c4de72312a60a428e8e3509287c592a979f6a82f62d8718ba23850faf87cc3860c9f
|
7
|
+
data.tar.gz: 394da076be046efaa6baf9d1b326f49b1954a88f4ecceba3f8791440f5767975844843e7b64f408679a9be861fb6934d27aa18629c6462f2830da2dd905488e4
|
data/lib/mqtt/sub_handler.rb
CHANGED
@@ -292,8 +292,11 @@ class SubHandler
|
|
292
292
|
# Initialize a new MQTT::SubHandler
|
293
293
|
# The handler immediately connects to the server, and begins receciving and sending.
|
294
294
|
# @param mqttClient [String, MQTT::Client] Either a URI to connect to, or a MQTT::Client
|
295
|
-
# The URI can be of the form "mqtts://Password@User:URL:port"
|
296
|
-
# The MQTT client instance can be fully configured, as specified by the MQTT Gem. It must
|
295
|
+
# The URI can be of the form "mqtts://Password@User:URL:port".
|
296
|
+
# The MQTT client instance can be fully configured, as specified by the MQTT Gem. It must *not* already be connected!
|
297
|
+
# @example Starting the handler
|
298
|
+
# mqtt = MQTT::SubHandler.new('iot.eclipse.org');
|
299
|
+
# mqtt = MQTT::SubHandler.new(MQTT::Client.new("Your.Client.Opts"))
|
297
300
|
def initialize(mqttClient)
|
298
301
|
@callbackList = Array.new();
|
299
302
|
if mqttClient.is_a? String then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mqtt-sub_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xasin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt
|