Bluetooth-Library icon indicating copy to clipboard operation
Bluetooth-Library copied to clipboard

Multiple Bluetooth Client Connections

Open Technickel-Dev opened this issue 4 years ago • 1 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!

Technickel-Dev avatar Jul 25 '19 19:07 Technickel-Dev

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 !

omaraflak avatar Jul 26 '19 15:07 omaraflak