IanHarvey / bluepy

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

Non blocking init call #295

Closed PrzemoF closed 6 years ago

PrzemoF commented 6 years ago

Is there a way of doing non-blocking init? For me prefect would be:

I have a class that is inheriting from bluepy.btle.Peripheral and threading.Thread in a multi-threaded application. I'm not sure if it's safe to call bluepy.btle.Peripheral.init outside of my class call init, but this is the only way I found to make it a non-blocking call - I call .bluepy.btle.Peripheral.init when

PrzemoF commented 6 years ago

RTFM - it's there.