rpi_pinin_msgout 0.3.4 → 0.3.5
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.tar.gz.sig +0 -0
- data/lib/rpi_pinin_msgout.rb +4 -4
- 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: 45c91cc901f451f15efe2fd9c181f80bf46a2006
|
4
|
+
data.tar.gz: c5441e975bef042abcac9a5cb51f02d75bb61f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ab4e74374b8cee121f3250ca0fb8f88a38146d033ba907c2ef1a0f2bc2f2ff92d238765a87e650858faaaaee40aff2c20fe1f5ee31b9092136fef33e10116b4
|
7
|
+
data.tar.gz: f77ae12b041f6ff0d228cefbbadd97a373d6abd1c9ba2f5ca2129e84f8f38c30ec47e34c6b3b92de65907b05fcece95938bfda6eb24565c8c9f1433ab9ef5241
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rpi_pinin_msgout.rb
CHANGED
@@ -42,16 +42,16 @@ class RPiPinInMsgOut < RPiPinIn
|
|
42
42
|
|
43
43
|
# duration: Used by sample mode
|
44
44
|
|
45
|
-
def initialize(
|
45
|
+
def initialize(gpio_pin, pull: nil, mode: :default, verbose: true,
|
46
46
|
subtopic: 'sensor', device_id: 'pi', notifier: Echo.new,
|
47
47
|
duration: '5 seconds', index: 0, capture_rate: 0.5,
|
48
|
-
descriptor: 'detected')
|
48
|
+
descriptor: 'detected', id: nil)
|
49
49
|
|
50
|
-
super(
|
50
|
+
super(gpio_pin, pull: pull)
|
51
51
|
|
52
52
|
@mode, @verbose, @notifier, @duration = mode, verbose, notifier, duration
|
53
53
|
@capture_rate, @descriptor = capture_rate, descriptor
|
54
|
-
@topic = [device_id, subtopic, index].join('/')
|
54
|
+
@topic = [device_id, subtopic, id || index].join('/')
|
55
55
|
@old_state = 'up'
|
56
56
|
|
57
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi_pinin_msgout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
/QWZvLXLPa7OQNk3073tdTJpg7UikQHoJfARvTOkJRUdVj1SKcKKZYkhBT94JX0N
|
32
32
|
Qsb+l0B03acbnw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-07-
|
34
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rpi_pinin
|
metadata.gz.sig
CHANGED
Binary file
|