Closed benbonn closed 2 weeks ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has beed automatically closed due to inactivity.
A retry mechanism is already in place to handle multiple failed connection attempts. You may want to allow users to configure the maximum number of retries before the adapter disables itself.
The retry mechanism in the code primarily revolves around the failedConnectCounter variable. This counter tracks how many consecutive times a connection attempt to the OekoFEN system has failed. If the number of failed attempts exceeds a set threshold (in this case, 10 attempts), the adapter disables itself.
Bascially update:
and
By adding this configuration option, users can customize how resilient the adapter is in terms of retrying failed connection attempts before it disables itself.