This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2541:SimpleBLECentral 多连接。

Guru**** 2589245 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/600306/cc2541-simpleblecentral-multiple-connection

器件型号:CC2541

您好!

我正在使用 simpleBLECentral 代码、我希望将代码连接到多个外设。 我在下面的链接中使用了...

http://processors.wiki.ti.com/index.php/Central_to_MultiPeripherals_V1.4.2 

但我无法连接多个外设。

我所做的是...首先我连接一个外设、然后我尝试连接另一个外设、但它显示仅在 LCD....it 上连接不会在 LCD 上打印"已连接"、我也放置了断点、但它未命中。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您是否更改了预定义符号中的值 MAX_NUM_BLE_CONns? 看起来它会导致堆栈静态分配更多空间、因此您必须对要支持的连接数进行一些谨慎处理。