Did some code cleanup.
Added a retry-loop to Peripheral._connect() to reduce the number of errors caused by devices failing to connect on the first try. Greatly reduces the number of errors in the journal.
Tested on Raspberry Pi 3 Model B Plus Rev 1.3 running Debian GNU/Linux 11 (bullseye) by dietpi.com
Did some code cleanup. Added a retry-loop to
Peripheral._connect()
to reduce the number of errors caused by devices failing to connect on the first try. Greatly reduces the number of errors in the journal.Tested on Raspberry Pi 3 Model B Plus Rev 1.3 running
Debian GNU/Linux 11 (bullseye)
by dietpi.com