lora-rb 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/lora-rb/base.rb +1 -1
- data/lib/lora-rb/mqtt/call.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c7b12543283401bc28530e52bc9f3828bdde24b
|
|
4
|
+
data.tar.gz: ffdb416a314549b69fcc4aafeeef663ce2393549
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d4846b306835eeb258903c923b433486b2782e467e33002b6fb1de4f10d70cd098745939f85f2485b2ec62e3b5b8e85861eb1a89295e9848ac25edc022871f7
|
|
7
|
+
data.tar.gz: a5b458a6060952c32f57f3c3ce0bda496b85fd0ae409bd7937e402151862d77331c8d62d529728d7805414ff2e86c42b897ea69a45dc8ded1ba75e77cf021455
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
v0.9.
|
|
1
|
+
v0.9.2 August 7th, 2017
|
|
2
|
+
------------------------------
|
|
3
|
+
* Fixed a bug: listen now use the block
|
|
4
|
+
|
|
5
|
+
v0.9.1 August 7th, 2017
|
|
2
6
|
------------------------------
|
|
3
7
|
* Added port to message uplink via mqtt, EUI is now eui
|
|
4
8
|
|
data/lib/lora-rb/base.rb
CHANGED
|
@@ -61,7 +61,7 @@ class LoraClient
|
|
|
61
61
|
options = { debug: @debug }.merge(options)
|
|
62
62
|
|
|
63
63
|
puts "#{Time.now} Starting Listen app #{@appid}. To exit press CTRL+C" if options[:debug]
|
|
64
|
-
sub_listen(options)
|
|
64
|
+
sub_listen(options, &block)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
# Close the secure connection with the cloud
|
data/lib/lora-rb/mqtt/call.rb
CHANGED
|
@@ -106,7 +106,7 @@ module LoraRb
|
|
|
106
106
|
message['port'] ||= get_port_from_topic(topic)
|
|
107
107
|
end
|
|
108
108
|
puts " [x] after rework: #{message}" if options[:debug]
|
|
109
|
-
block.call(topic, message) if
|
|
109
|
+
block.call(topic, message) if block_given?
|
|
110
110
|
break if options[:test]
|
|
111
111
|
end
|
|
112
112
|
end
|
data/lib/version.rb
CHANGED