zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
549 stars 116 forks source link

Multiple bluetooth devices --> configure which one to use #226

Open rsneyer opened 3 years ago

rsneyer commented 3 years ago

Is your feature request related to a problem? Please describe. I'm successfully running bt-mqtt-gateway in docker on a raspberry 3+ on hypriot. Works very well! Thank you! The raspberry has multiple (usb) bluetooth dongles attached (hci0, hci1, hci2) which all work. How can I configure bt-mqtt-gateway to use hci2?

Describe the solution you'd like configurable option which bluetooth device to use

Describe alternatives you've considered none

Additional context none

Thank you for info!

Best regards, rsneyer

zewelor commented 3 years ago

Hmm I think problem will be with few different BLE libs, used by workers. Maybe easiest solution would be to use docker and pass desired ble device there only ?

domifi commented 3 years ago

I have the same problem and have not yet managed to pass only one bluetooth controller to the container. Did you find a solution @rsneyer ?

rsneyer commented 3 years ago

Unfortunatly not; I ended up using 2 raspis.