Workaround to stop hardwere activity when the app is closed

Hi there! I wonder if someone can help to sol an issue I have with my project. It's a simple project where via the dashboard I can control the rotation of a stepper motor. Everything works but I have the necessy of stopping the stepper rotation in case the app on my phone closes down.
I thought i could acheive simply monitoring the connection to the cloud and if the app closes, the connection cut. But apparently even if you close the app the connection witht the cloud doesn't drop.
Anyone knows a workaround to make sure that if the app is closed down the stepper stops?

Perhaps have the app send a periodic message. If no message is received after a time, the app is not running?

1 Like

The app is Arduino IoT Remote, I don't know if it's possible to make it send signals every so often...

Your next research project!