Spostato diverse parti dello script in file di inclusione, completato driver di esempio
This commit is contained in:
33
drv/sample/rele.include.sh
Normal file
33
drv/sample/rele.include.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#
|
||||
# Inizializzazione rele
|
||||
#
|
||||
# $1 identificativo relè da inizializzare
|
||||
#
|
||||
function drv_sample_rele_init {
|
||||
|
||||
echo "$(date) drv_sample_rele_init $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
# Apertura rele
|
||||
#
|
||||
# $1 identificativo relè da aprire
|
||||
#
|
||||
function drv_sample_rele_open {
|
||||
|
||||
echo "$(date) drv_sample_rele_open $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
# Chiusura rele
|
||||
#
|
||||
# $1 identificativo relè da chiudere
|
||||
#
|
||||
function drv_sample_rele_close {
|
||||
|
||||
echo "$(date) drv_sample_rele_close $1" >> /tmp/piGarden.drv.sample
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user