请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2745R10-Q1 工具/软件:
您好、
GAP_UpdateLinkParamREQ 和 L2CAP_ConnParamUpdateREQ 之间有什么区别?
内容本身都设置了 Connection 参数、但有什么区别?
我还想知道应该使用哪种 API。
此致、
Katsuya
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.
工具/软件:
您好、
GAP_UpdateLinkParamREQ 和 L2CAP_ConnParamUpdateREQ 之间有什么区别?
内容本身都设置了 Connection 参数、但有什么区别?
我还想知道应该使用哪种 API。
此致、
Katsuya
您好:
GAP_UpdateLinkParamREQ 将通过在 GAP 强制服务上更改 GATT 特性来发送连接参数。 但是、并非所有器件都支持此方法、因此如果失败、器件将发送 L2CAP_ConnParamUpdateREQ、通过 L2CAP 更新连接参数。
在我们的 BLE 栈中、如果 GAP_UpdateLinkParamREQ 失败(另一个器件不支持或不允许它)、则栈将自动发送 L2CAP_ConnParamUpdateReq。 我建议坚持使用 GAP_UpdateLinkParamREQ 、因为它的回退 如果失败、无论如何都会调用 L2CAP_ConnParamUpdateREQ。
此致、
Nima Behmanesh