Jul 23 2021 12:49 AM
Hi,
I'm struggling to find a deterministic way to check from my IoT Edge docker container if the connection to the IoT Hub has been lost (unplugged ethernet cable, etc.). This is to set a system LED to the corresponding position for user feedback.
None of the NodeJS callbacks in `azure-iot-device` library I try (`error`, `disconnect`, etc) don't get triggered, nor the `client.sendOutputEvent` returns an error.
I've setup now a HTTPS GET for portal.azure.com. However, this does not work if the credentials have been revoked for example.