import signaldef signal_term_handler(signal, frame):GPIO.cleanup()sys.exit(0)signal.signal(signal.SIGINT, signal_term_handler)
Hi Kovacs
I tried your solution today. I added some output to the call, but never saw it called. How exactly are you stopping it ? By ctrl-break or node-red-stop ?
Hi Kovacs
I tried your solution today. I added some output to the call, but never saw it called. How exactly are you stopping it ? By ctrl-break or node-red-stop ?.