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.

[参考译文] CC2540:如何订阅 TI BLE 堆栈中的通知特征

Guru**** 2540720 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/693492/cc2540-how-subscribe-for-notify-characteristic-in-ti-ble-stack

器件型号:CC2540

大家好!

我正在开发基于 TI cc540 ble SoC 的 BLE 器件、我希望实现一个从 外围器件读取通知特性(带回调函数)的中央器件、 但我不知道如何订阅 通知 慈善机构,是否有人可以就如何订阅通知我?

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

    要从特征订阅通知、您必须向关联的 CCfg 写入1。

    例如、使用简单的 BLE 外设、连接中央设备。 发现服务和特征、并将1写入特征4的 CCfg。