Bad times with TimerExample

Thanks Wayne and Paul!

Run sounded right! Alas it isn’t real… Works like a champ with .Run!

Not knowing that I went all brute force and did this to get a 5 minute timer:

while true
mDoIt
App.DoEvents(300000)
wend

Is there any advantage to using a timer in a console program over App.DoEvents like the above?

The program I’m working on is a Raspberry Pi device to restart an Internet connection when it quits. Every 5 minutes it uses Joost Rongen’s excellent public IP getter routine and if no valid IP then activates a handy power strip to cut power to the modem/router/AP for 30 seconds and hopefully get things back on track. Paul’s GPIO and LCD examples were VERY helpful!

A aside question, Is there an event triggered on a RPi console program that will execute when the program stops? Like stopping via ctrl+c or kill PID? I kinda think not but what do I know…