hcitools_wrapper 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3c6b6199aa3866552871a054ebfe184ee7d7ebf
4
- data.tar.gz: 493ae2e75b19d323ece474d545cafae6442faa45
3
+ metadata.gz: 379d8268ce5257c66632ec3e6a2585e58ec74281
4
+ data.tar.gz: 5c98c0421a85ff2deca28dffbc07f73c4876da05
5
5
  SHA512:
6
- metadata.gz: 22999061886fff7f05e1dbaa84f516d3c2ddb4ec91f7caa6e7dfd71488e61495a6268aebd66e06ac099240ac9be0f6be4341ac87c2bd2f8a98801f9095d0c3bb
7
- data.tar.gz: eb8b420ff574d9e28dc9779bd5a572de88b55db8329d9889cbb1b3107d670e61dee4b864858815ca3fed90dd8f2dfe79ddd6dc3a8703d8d4efd3ff10eee84fd2
6
+ metadata.gz: 6364d35d24e16df291c91d3d4c960de398b3c0fea7b9ebcb384dd0574f95bc7fd4a4b1902b7e925ba0e4e83cd2d635773e9f80304f15faf4476c4bfbbd2bb773
7
+ data.tar.gz: ce813ecd717acf4c9cb2bbe4901fc1042db5311bc06ab15d5346515289d97e665cd3134929def861a2600c9e6bd437e736d19b88601df2b02e235c9de88ab82b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -57,12 +57,14 @@ module HcitoolsWrapper
57
57
  puts Time.now.inspect + ': ' + h.inspect
58
58
  puts "max: %s, min: %s, average: %s, a: %s" % \
59
59
  [a.max, a.min, avg, a.sort.inspect]
60
- puts 'changed!' if avg != a.max + (a.min - a.max) / 2
60
+
61
61
  end
62
62
 
63
63
  # the RSSI will vary by up to 10 when the device is stationary
64
64
  if a.length > 10 or rssi > (a.max + 10) or rssi < (a.min - 10) then
65
65
 
66
+ puts 'changed!' if @verbose
67
+
66
68
  if block_given? then
67
69
  yield a, avg
68
70
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hcitools_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -83,6 +83,6 @@ rubyforge_project:
83
83
  rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
- summary: Uses hcitool lescan + hcidump --r to fetch the RSSI values from a Bluetooth
86
+ summary: Uses hcitool lescan + hcidump --raw to fetch the RSSI values from a Bluetooth
87
87
  device address.
88
88
  test_files: []
metadata.gz.sig CHANGED
Binary file