I want to create a rule to check when my device stops sending messages to IoT Central.
For example, when I have a power outage and my device stops working I want to be able to fire an action: send email, run an Azure Function, etc.
I was thinking of creating a command to send a message to my device and then try to read it back. Then I would create a job to run this command but this doesn't seem to be right way to deal with this.
Is that possible? What should I do?
EDIT I already have some telemetry information being sent from my device to the cloud. If I was able to calculate the time past since the last message, I could create a rule (ex.: When time is greater than X) to fire an action.