IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 491 forks source link

Make Peripheral connection less repetitive #427

Open aero-man opened 3 years ago

aero-man commented 3 years ago

The connection code in Peripheral.__init__() and Peripheral.connect() are the same. Calling connect() directly in init accomplishes the same thing and eventually calls _connect().