An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
Hello @rfuentess ,
welcome to this moderated Azure community forum.
As seen in the other answer post, it seems you have found a solution for your question.
In the past, I have worked with serial connections that are also not reliable regarding the availability.
It's best to be prepared the connection to (external) hardware is lost and the code will try to reconnect at a descent interval.
If this does not work, letting the module 'crash' so the fall-back of Docker is kicked in to restart the module is also an approach although this can have side effects like lost data. Keep it in mind as a last resort.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.