iniziato gestione driver

This commit is contained in:
lejubila
2017-08-03 00:18:35 +02:00
parent 9cb7d6ce9d
commit 867b4e4374
8 changed files with 81 additions and 0 deletions

2
drv/sample/README.md Normal file
View File

@@ -0,0 +1,2 @@
# Fake driver for sample and testing

View 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
}

View 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
}

View 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
}

View 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
}