bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.7k stars 608 forks source link

Is btstack support multi-threads?Is there any way let my statck connect with multi BT/BLE devices? #435

Closed SeanPcWoo closed 2 years ago

SeanPcWoo commented 2 years ago

Now I run the btstack in my product. The funtions of the product like a PC. It can connect with hid-keyboard 、mouse and audio device. However I can only run one demo once, it means my product can only conntect with one device once. How can I let my product connected with more than one device? I need hid-keyboard and audio device connect to btstack and work.

mringwal commented 2 years ago

Hi Sean. BTstack allows to use different profiles at the same time. For this, you need to combine both the setup logic as well as the packet handlers, e.g. from different examples. Please see our documentation.

As an example, gatt_counter (GATT Server) and spp_counter (SPP Server) have been combined into spp_and_gatt_counter.

For commercial use, please contact us at contact@bluekitchen-gmbh.com as well.

SeanPcWoo commented 1 year ago

Ok, i got it. Thanks!