iniziato gestione driver
This commit is contained in:
2
drv/sample/README.md
Normal file
2
drv/sample/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Fake driver for sample and testing
|
||||
|
||||
11
drv/sample/close.include.sh
Normal file
11
drv/sample/close.include.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Questa funzione viene richiamata da "ev_close" di piGarden
|
||||
#
|
||||
# $1 identificativo relè da chiudere
|
||||
#
|
||||
function drv_sample_close {
|
||||
|
||||
echo "$(date) drv_sample_close $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
9
drv/sample/init.include.sh
Normal file
9
drv/sample/init.include.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# Questa funzione viene inviocata dalla funzione "init" di piGarden se sono presenti elettrovalvole o sensori che utilizzano questo driver
|
||||
#
|
||||
function drv_sample_init {
|
||||
|
||||
echo "$(date) drv_sample_init" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
11
drv/sample/open.include.sh
Normal file
11
drv/sample/open.include.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Questa funzione viene richiamata da "ev_open" di piGarden
|
||||
#
|
||||
# $1 identificativo relè da aprire
|
||||
#
|
||||
function drv_sample_open {
|
||||
|
||||
echo "$(date) drv_sample_open $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
11
drv/sample/status.include.sh
Normal file
11
drv/sample/status.include.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Questa funzione viene richiamata da "ev_get_status" di piGarden
|
||||
#
|
||||
# $1 identificativo relè di cui repereire lo stato
|
||||
#
|
||||
function drv_sample_status {
|
||||
|
||||
echo "$(date) drv_sample_status $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user