is there any kind of watchdog timer kind of thing in processing that will restart your code from the beginning? like rerun setup and everything if the serial communication isnt happening?
I am making a kiosk type setup. A bunch of buttons go into a teensy. Teensy goes reads button presses and tell intel NUC whats happenin’
I ran into a problem today where (due to back emf from a relay… which i am going make a snubber circuit so this doesnt happen anymore) the teensy lost connection from the computer for a split second. Processing was already running and when the teensy booted back up, the serial connection was lost because processing is already in the main loop and I guess when the teensy came back online processing didnt want to listen to the serial messages. it only worked if i manually restarted the program. That’s not going to be possible in the final product.
Is there any kind of watchdog reset?
Thank you beautiful people!