lora-rb 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a7aecb0c4a396e5e8c2ce339c2308327c065e83
4
- data.tar.gz: e44bbcee41a9bf7ccde484d2f2deb40a1176c0b8
3
+ metadata.gz: '09b908787b7f1c74a3c67920552b2f81a8c01a6d'
4
+ data.tar.gz: 0baf8e0f2cebb3b6e4d2f9e1b7334190b2c9e870
5
5
  SHA512:
6
- metadata.gz: 6f02138aa2d1f4c2962e1c8f7caa8ea0c332d8e93999d9fc43730f8a5ebb9f127eaeaabb7758da811cbad1ab2b95727d7dc190fc44dc0df67ac211dbaaa7489d
7
- data.tar.gz: 8d72dc43ae9df0e701240377eeb268fd4a7b78b872658044bbe04778ea1b021e7f15774ffd2652af393a34913c770d70f3c8f857b4693ce9c06ce468351a0429
6
+ metadata.gz: a5880357114422ad7ad00495eeee365123207d9004a1af0980637d5e2b84c83060cb45c5096524c894f0afdf341e077278803f079180c60adcb9f7b05b591a57
7
+ data.tar.gz: 1639362e144f3518d73aa44ac31cd4610fd1d1106c92150f9e141e0bd3eb9c55fbe18002a6143f9332a7a2d75ea2ff31b3946d148193cc2beacfb779f1e3bc5c
@@ -1,3 +1,7 @@
1
+ v0.7.1 June 30th, 2017
2
+ ------------------------------
3
+ * Fixed send cmd for http protocol: It now returns a hash, previously a string
4
+
1
5
  v0.7.0 [☰](https://bitbucket.org/fractalgarden/loriot-rb/branches/compare/v0.6.0..v0.7.0) June 29th, 2017
2
6
  ------------------------------
3
7
  * Http send cmd now return an hash with all the network data
@@ -26,7 +26,7 @@ module LoraRb
26
26
  puts "#{Time.now} Cmq request: #{json_request}" if options[:debug]
27
27
  response = HTTP.headers(_http_headers)
28
28
  .post("https://#{@host}/api/application/#{@appid}/nodes/#{options[:eui]}/downlink", json: json_request)
29
- return response if options[:debug]
29
+ return response if options[:debug] == :full
30
30
  # Return the json hash from the string
31
31
  ar = response.to_a
32
32
  # Example:
@@ -34,7 +34,7 @@ module LoraRb
34
34
  # {"Content-Type"=>"application/json", "Date"=>"Thu, 29 Jun 2017 16:32:37 GMT", "Content-Length"=>"109", "Connection"=>"close"},
35
35
  # "{\"error\":\"Node [AppEui: 1234, DevEui: abcd000000001234] not found in your collection.\",\"code\":2}"
36
36
  # ]
37
- {'status_code' => ar[0]}.merge(ar[1]).merge(JSON.parse(ar[2])).to_json
37
+ {'status_code' => ar[0]}.merge(ar[1]).merge(JSON.parse(ar[2]))
38
38
  end
39
39
 
40
40
  # Uplink: http waits data with an http server.
@@ -1,5 +1,5 @@
1
1
  module LoraRb
2
2
  def self.version
3
- "0.7.0"
3
+ "0.7.1"
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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Mastrodonato