I'm at a standstill with a problem in my program and have tried everything.
The program samples the GPIO pins on a Raspberry pi in a very rapid loop, so that is one thread that is going on -- that part is working fine.
Now, I want to send an email while everything is happening (which includes a couple of threads, plus a tkinter interface etc -- much going on but as I say, all works fine.
I can set up a thread that will send the email fine but the problem is that after the email is sent, I have a timer (counter) that will wait 10 minutes, check status and send another email if needed.
The only way I can send the email is in a thread without it interfering with the program and the other loops etc. This business of threads can only be started once is baffling -- certainly there are situations like mine that have a solution? Any hints?
-- thanks much