lora-rb 0.7.0 → 0.7.1
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 +4 -0
- data/lib/lora-rb/http/call.rb +2 -2
- 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: '09b908787b7f1c74a3c67920552b2f81a8c01a6d'
|
4
|
+
data.tar.gz: 0baf8e0f2cebb3b6e4d2f9e1b7334190b2c9e870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5880357114422ad7ad00495eeee365123207d9004a1af0980637d5e2b84c83060cb45c5096524c894f0afdf341e077278803f079180c60adcb9f7b05b591a57
|
7
|
+
data.tar.gz: 1639362e144f3518d73aa44ac31cd4610fd1d1106c92150f9e141e0bd3eb9c55fbe18002a6143f9332a7a2d75ea2ff31b3946d148193cc2beacfb779f1e3bc5c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/lora-rb/http/call.rb
CHANGED
@@ -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]))
|
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.
|
data/lib/version.rb
CHANGED