hcitools_wrapper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/hcitools_wrapper.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 379d8268ce5257c66632ec3e6a2585e58ec74281
|
4
|
+
data.tar.gz: 5c98c0421a85ff2deca28dffbc07f73c4876da05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6364d35d24e16df291c91d3d4c960de398b3c0fea7b9ebcb384dd0574f95bc7fd4a4b1902b7e925ba0e4e83cd2d635773e9f80304f15faf4476c4bfbbd2bb773
|
7
|
+
data.tar.gz: ce813ecd717acf4c9cb2bbe4901fc1042db5311bc06ab15d5346515289d97e665cd3134929def861a2600c9e6bd437e736d19b88601df2b02e235c9de88ab82b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/hcitools_wrapper.rb
CHANGED
@@ -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
|
-
|
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.
|
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 --
|
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
|