Simultaneously connections to 2 BLE devices
Closed this issue · 1 comments
Hello,
at first thank you very much for nice library. I would like to ask you if I can connect 2 BLE devices simultaneously?
I tried to create 2 pthread_t threads and have each process of BLE device under 1 thread, but it doesn't work.
It seems that only 1 connection is allowed.
I'm not skilled at Bluetooth. Can I use it for this purpose?
Thanks
Btferret acting as a client can connect to multiple BLE devices simultaneously, and acting as a server can be connected by multiple clients. It is not necessary to run multiple threads. If you are running two instances of btferret in separate threads, it will fail because they will conflict with each other. It is not possible for one device to advertise as two separate BLE devices.