lora-rb 0.9.2 → 0.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c7b12543283401bc28530e52bc9f3828bdde24b
4
- data.tar.gz: ffdb416a314549b69fcc4aafeeef663ce2393549
3
+ metadata.gz: 79c6d0b8da60562e095fecb4d8c78b436a1a4e92
4
+ data.tar.gz: 7629b1d3970c241e5d9a0e275aec3c966d859510
5
5
  SHA512:
6
- metadata.gz: 4d4846b306835eeb258903c923b433486b2782e467e33002b6fb1de4f10d70cd098745939f85f2485b2ec62e3b5b8e85861eb1a89295e9848ac25edc022871f7
7
- data.tar.gz: a5b458a6060952c32f57f3c3ce0bda496b85fd0ae409bd7937e402151862d77331c8d62d529728d7805414ff2e86c42b897ea69a45dc8ded1ba75e77cf021455
6
+ metadata.gz: 3fb99d9ed59893102df187a271e0bc8dc0fe9c0c81e09f329e3759a6e0a4ab2b81f37b255fbc12c59ad5ceb0a90ba0923a188be79ffab2a52b3b1022e876bc9d
7
+ data.tar.gz: 46256d4883731154991c811ac96ab6f224d08f0934dcf7826d3e2a71e4744b00c2230c06e9e6947f9888b0b6aa6b2214b721f3d0b143a4723f7c7a9a9f346e2e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v0.9.3 August 8th, 2017
2
+ ------------------------------
3
+ * Fixed a bug with mqtt protocol: now when LoraClient is instantiated uses the new client id just generated
4
+ * Mqtt: Send cmd now use the new parameter wait_response to wait the response on the topic response, not confirmed param anymore.
5
+
1
6
  v0.9.2 August 7th, 2017
2
7
  ------------------------------
3
8
  * Fixed a bug: listen now use the block
@@ -69,7 +69,7 @@ module LoraRb
69
69
  response = @client.publish(publish_url, h_request.to_json, false)
70
70
  puts " [x] publish response: #{response}" if options[:debug]
71
71
 
72
- if options[:confirmed]
72
+ if options[:wait_response]
73
73
  response_topic = "reply/#{@client_id}/id/#{request_id}"
74
74
  puts " [x] Waiting response on #{response_topic} ..." if options[:debug]
75
75
  response_topic, response = sub_read_data(topic: response_topic)
@@ -6,6 +6,7 @@ module LoraRb
6
6
 
7
7
  # Show tips on usage
8
8
  def merge_tags_to_url(url, tags={}, options={})
9
+ url = url.dup
9
10
  puts "merge_tags_to_url: #{url}" if options[:debug]
10
11
  tags.each do |tag, value|
11
12
  puts " replace {#{tag}} with #{value}" if options[:debug]
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LoraRb
2
2
  def self.version
3
- "0.9.2"
3
+ "0.9.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lora-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Mastrodonato
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-02 00:00:00.000000000 Z
13
+ date: 2017-08-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json