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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0949519d1a3060b986dfbc56bd52e122d5fed41e'
4
- data.tar.gz: ae2e2b4e1d9fb6e090b908f59fe0e7c92d0d7749
3
+ metadata.gz: 45c91cc901f451f15efe2fd9c181f80bf46a2006
4
+ data.tar.gz: c5441e975bef042abcac9a5cb51f02d75bb61f31
5
5
  SHA512:
6
- metadata.gz: ebf9888b0b6ea762afe3d362dcf02c623ce7cca161c19130e24415e69869de2bfe71d9d9870c0bc37dfc86879741a80f6b3b37f36edb4432a7e556fed497b640
7
- data.tar.gz: 8bcbe70253189496d0448229b8ff07105c3ae8feadfd68ec68d4fce84f6d9636e1a2813c7b9e0ada68bbba6b1139a8f785abdef8f38c71c1444143972f128bac
6
+ metadata.gz: 3ab4e74374b8cee121f3250ca0fb8f88a38146d033ba907c2ef1a0f2bc2f2ff92d238765a87e650858faaaaee40aff2c20fe1f5ee31b9092136fef33e10116b4
7
+ data.tar.gz: f77ae12b041f6ff0d228cefbbadd97a373d6abd1c9ba2f5ca2129e84f8f38c30ec47e34c6b3b92de65907b05fcece95938bfda6eb24565c8c9f1433ab9ef5241
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -42,16 +42,16 @@ class RPiPinInMsgOut < RPiPinIn
42
42
 
43
43
  # duration: Used by sample mode
44
44
 
45
- def initialize(id, pull: nil, mode: :default, verbose: true,
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(id, pull: pull)
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
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-25 00:00:00.000000000 Z
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