b/systemd/system/unifi.service.
# /lib/lsb/init-functions nach installieren
yum install redhat-lsb-core
# ... -proc-and-how-do-i-call-it
# add to /lib/lsb/init-functions
vi /lib/lsb/init-functions
status_of_proc ()
{
local pidfile daemon name status OPTIND;
pidfil... fi;
fi
}
log_daemon_msg () {
# Dummy function to be replaced by LSB library.
echo $@
}
lo
ort=27
RPIO.setup(enable_port,RPIO.OUT)
RPIO.gpio_function(enable_port)
RPIO.output(enable_port,RPIO.LOW)
#... = 27
RPIO.setup(enable_port, RPIO.OUT)
RPIO.gpio_function(enable_port)
RPIO.output(enable_port, RPIO.LOW)
... debug purpose on the same line if used in decode function
def printData():
global datagram
# print "\r da... True
call_time=time.time()
#define the interrupt function
def SetLed(gpio_id,val):
global blink_count
g
ut port to HIGH
#LED ON
RPIO.gpio_function(out_port)
RPIO.output(out_port,RPIO.HIGH)... RPIO.output(out_port,RPIO.LOW)
RPIO.gpio_function(out_port)
time.sleep(2)
# Clean up
RPIO... nt=0
push_state=0
run=True
#define the interrupt function
def SetLed(gpio_id,val):
global push_coun