Hello, i'm wondering if there is a way to detect when someone hits the "power 
off" button, so I can run a little code right before it actually turns off.

Or, detect if it was just powered on, and run some code then.

My issue is that i've got a lot of serial communications going on and users 
aren't supposed to just power off in the middle of using my app, but they do by 
accident, and then it creates a few issues i'd like to avoid.

Thanks,
    Stewart

-- 
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.

Reply via email to