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.

[参考译文] CC2650:多角色连接句柄

Guru**** 2558800 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/572082/cc2650-multi-role-connection-handle

器件型号:CC2650

我正在从事多角色项目、并使用 GitHub 网站上提供的 multi.c 和 multi.h 配置文件。 我想读取参数"GAPROLE_CONNNANDLE"、我在"GAPRole_GetParameter"函数中进行了查看、但没有为"GAPROLE_CONNNANDLE"定义任何情况。 请告诉我应该使用哪个函数来获取连接句柄。  

我使用 的是 ble_cc26xx_2_01_01_44627堆栈。

谢谢、

高朗

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

    您好、Gourang、

    为什么要读取连接句柄值?

    在 multi_role 中、connectionHandleMap 负责处理连接句柄。 它保存在 GAP_LINK_established 事件中:

    //存储连接句柄
    connHandle = pEvent->linkCmpl.connectionHandle;
    //添加索引到 connHanlde 映射条目
    multi_role_addMappingEntry (connHandle);