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.

[参考译文] CC2340R5:中央 GATT 查找服务句柄范围

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

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1359846/cc2340r5-central-gatt-find-service-handle-range

器件型号:CC2340R5

您好!

我看了 基本的低功耗 GATT 客户端示例 、我想我了解它的基本流程、但由于 GATT 表句柄是硬编码的、因此我试图添加代码以使应用程序更灵活一些。

浏览 BLE 堆栈文档、可以使用多个可能的 API 来向 GATT 服务器查询 GATT 表中的各种数据。 但是、我们的文档中并没有有关如何使用 API 查找 UUID 的服务句柄、然后发现中的关联特征的良好指南。

通过 UUID 在服务中同时查找服务和特征并返回每个服务的句柄、建议使用什么方法?

我找到了 GATT_DiscPrimaryServiceByUUID (),但这只能识别主服务 UUID 的句柄。  

此致、

穆南