paho-mqtt 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paho_mqtt/handler.rb +4 -5
- data/lib/paho_mqtt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af6f895ced3d30a8d24b38852cd3057dbeb25a483ace1d57d5b4ed02b0d0c863
|
4
|
+
data.tar.gz: 61e56c02727c3bfac306e23615cc94bdd549e920ab49fd53cea4c06d1815ca67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe282a5693db9866c5397d75b4d1a39b142b61566ac09d61fa1820db33af4bf36489c55d93c9abe11cbd8ee9c79466bfbdba9ab6225e5ed55e21858b7e011b7
|
7
|
+
data.tar.gz: '0854c7eec6abf060a0e3334874da9587c28c404d861abe424d7d33fa4cbda8b4cf32908396d0c0c8fa3038bff28cedceb937fa9ed19db8e1539e954c2616cfdd'
|
data/lib/paho_mqtt/handler.rb
CHANGED
@@ -18,7 +18,7 @@ module PahoMqtt
|
|
18
18
|
attr_reader :registered_callback
|
19
19
|
attr_accessor :last_ping_resp
|
20
20
|
attr_accessor :clean_session
|
21
|
-
|
21
|
+
|
22
22
|
def initialize
|
23
23
|
@registered_callback = []
|
24
24
|
@last_ping_resp = -1
|
@@ -46,7 +46,7 @@ module PahoMqtt
|
|
46
46
|
else
|
47
47
|
handle_packet(packet)
|
48
48
|
@last_ping_resp = Time.now
|
49
|
-
end
|
49
|
+
end
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -133,8 +133,7 @@ module PahoMqtt
|
|
133
133
|
id = packet.id
|
134
134
|
topics = []
|
135
135
|
topics = @subscriber.remove_subscription(id, topics)
|
136
|
-
unless
|
137
|
-
puts "PAHO TOPICS: #{topics}"
|
136
|
+
unless topics.empty?
|
138
137
|
@on_unsuback.call(topics) unless @on_unsuback.nil?
|
139
138
|
end
|
140
139
|
end
|
@@ -157,7 +156,7 @@ module PahoMqtt
|
|
157
156
|
|
158
157
|
def handle_pubrec(packet)
|
159
158
|
id = packet.id
|
160
|
-
if @publisher.do_pubrec(id) == MQTT_ERR_SUCCESS
|
159
|
+
if @publisher.do_pubrec(id) == MQTT_ERR_SUCCESS
|
161
160
|
@on_pubrec.call(packet) unless @on_pubrec.nil?
|
162
161
|
end
|
163
162
|
end
|
data/lib/paho_mqtt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paho-mqtt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Goudet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|