How to check Azure Device Update has successfully connected
I am using Azure Device Update agent version 1.1.0.
Is there a programmatic way to test is the update agent has successfully connected to the hub? I am looking to implement a fallback strategy that confirms the ADU agent has re-established a connection with IoT Hub before an update is considered successful.
Running /usr/bin/AducIotAgent --health-check
does not work for this use case, because that appears to succeed if the agent starts and can retrieve a connection string -- but does not confirm a connection can be made (example, if the device no longer has any network connection - the health check will still succeed).