apiotics_factory 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics_factory/version.rb +1 -1
- data/lib/templates/apiotics_interfaces.rb.erb +1 -7
- 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: 945329b31f53bfcc9d934823f1ff3b52ba7fc83d
|
4
|
+
data.tar.gz: 6b2d8470e37453f3b549aafdcb50ae600df363d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524ccf8a04dcbc6639c1f2489ba9a7a26e8a13b346e6bdd7556fcd885b923d25a8fa45852f0f66ab9d16f77bb03549c4716913473b73fc9ff8b4961b13bfd5fd
|
7
|
+
data.tar.gz: 0753d655a473125f5c5a710fb7e0964b294c74f057e33cbab3952a011f721a1c51c59f00e568026fd1ccb3a630e104f7247d2cd3613298e5cd9c781d83f6585c
|
@@ -14,23 +14,17 @@ class <%= @driver_name %> < ApioticsDriver
|
|
14
14
|
<% unless k == "port" || k == "delay" %>
|
15
15
|
<% if v["accessor"] == "write only" || v["accessor"] == "read/write" %>
|
16
16
|
def <%= "write_#{k}(#{v["type"]})"%>
|
17
|
-
# IF YOU ARE USING GROVE PI PERIPHERALS, UNCOMMENT THE GrovePi.get_lock AND GrovePi.release_lock LINES BELOW.
|
18
|
-
# GrovePi.get_lock
|
19
17
|
|
20
18
|
# Your hardware specific logic to set the state of your <%= k %> hardware goes here based on the value of the <%= v['type'] %> variable.
|
21
|
-
|
22
|
-
# GrovePi.release_lock
|
19
|
+
|
23
20
|
self.send_msg(<%= v["type"]%>) # This line sends a confirmation message back to the web application noting that the operation is complete.
|
24
21
|
end
|
25
22
|
<% end %>
|
26
23
|
<% if v["accessor"] == "read only" || v["accessor"] == "read/write" %>
|
27
24
|
def <%= "read_#{k}"%>
|
28
|
-
# IF YOU ARE USING GROVE PI PERIPHERALS, UNCOMMENT THE GrovePi.get_lock AND GrovePi.release_lock LINES BELOW.
|
29
|
-
# GrovePi.get_lock
|
30
25
|
|
31
26
|
# Your hardware specific logic here should read a value from your <%= k %> hardware, and set the <%= v["type"] %> variable appropriately.
|
32
27
|
|
33
|
-
# GrovePi.release_lock
|
34
28
|
self.send_msg(<%= v["type"]%>) # This line sends the value in the <%= v["type"] %> variable to the web application.
|
35
29
|
end
|
36
30
|
<% end %>
|