I'm struggling now to find a way to unblock the thread, that I will put this code into, when the app script needs to exists. Of course, I don't want to use timeouts on the `for event in MonLines.read_edge_events():`, as I don't want any CPU utilization while idle. I was thinking of markinig the thread as daemon, but if I do that, and it is automatically terminated, It does not have a chance to cleanup and free resources... Maybe, including a dummy pin in my monitoring lines, and make it an output and change it's state when I need the thread to termiante ?
Statistics: Posted by Marus780 — Sun Sep 15, 2024 11:34 pm