how to do this if i close my app then shutdown Arduino functionality.
You could rig your app to regularly send something to the sketch to signal that it is listening, like saying Uh Huh to your wife.
In the sketch loop, check milliseconds from the last Uh Huh. Use current SystemTime for the initial value of the last received Uh Huh. If difference exceeds a few minutes shut down.
1 Like
thank your