IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.61k stars 490 forks source link

Reduce BTLEDisconnectErrors #476

Closed Mausy5043 closed 2 years ago

Mausy5043 commented 2 years ago

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