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.
您好!
我正在尝试为温度传感器读数声明一个环境感应服务、该服务能够在其读数超过某个阈值 x 时通知我 。我想知道如何声明该服务并将其添加到属性表、尤其是根据服务所需的描述符。 由蓝牙 SIG 确定的通信规范。
提前感谢您!
您好!
感谢您获得支持、
请查看以下文档、其中展示了如何构建和使用属性表: https://dev.ti.com/tirex/content/simplelink_lowpower_f3_sdk_7_40_00_64/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/gatt-cc23xx.html#building-up-the-attribute-table
您还可以查看 basic_ble_profiles 示例 、尤其是 common/services/health_tempergress_server.c 文件、请额外注意 bps_atttrTbl 变量和 bps_addService 函数。
希望这对您有所帮助、
丹桂语