The trick will be figuring out how to only do the reset 'once per power cycle'. So the 'first' time the sketch runs, it sets some flag, then resets itself. The 'second' time it checks the flag state, and doesn't reset. Tricky.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16