omaraflak / Bluetooth-Library

Bluetooth client library for Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Bluetooth Client Connections

Technickel-Dev opened this issue · comments

I would love to see a way to connect and disconnect your client to multiple Bluetooth devices (For example an Android smartphone using this library to connect to multiple HC-06 Bluetooth modules)

As far as I can tell, it will run multiple connections but disconnecting the multiple connections is impossible because the reference to the thread running the receiver is lost when the second connection is made.

Great library though! Keep up the great work!

This is definitely possible. It shouldn't even be too hard to implement, we would simply have to make a list of ReceiveThread and architecture the library so that you can easily interact with each thread.

Unfortunately I won't be able to work on that feature before 1 month. That said, if you want to, feel free to implement it yourself and make a pull request.

Thanks for the kind words anyway !