Thank you for your help and guidance. Since most of my interrupts occur very rarely - at least I hope so: smoke detectors, intruder alarms - I need to do the following: first a call to stop_waiting_for_interrupts(), then wait_for_interrupts(epoll_timeout=60). Is that correct ?metachris wrote:The wait_for_interrupts method waits indefinitely. You can end it with RPIO.stop_waiting_for_interrupts(), then it will exit after the next specified timeout (eg. 60sec in your case).joshmosh wrote:Sorry Chris,
another probably silly question: I have setup waitforinterrupt with an epoll_timeout=60, since I want to regain control at least every minute in case nothing else happens. My problem is that the program is stuck in the waitforinterrupt routine. I have included a print statement right after waitforinterrupt, but this is never reached.
Any guidance would be highly welcome.
Because other way round stop_waiting_for_interrupts() would not be executed ...
Thanks a lot !