Other Parts Discussed in Thread: CC2541
工具/软件:TI C/C++编译器
大家好、
我将 BLE 堆栈1.5.1.1与 CC2541搭配使用。 我想通知电池电量、因为我能够读取该值并且通知已启用、但我希望每10秒电池就会向 BLE 特性通知电池电量。
此致、
Yatin Baluja
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.
SimplePeripheral 示例使用 simpleProfileChar4演示通知。 在 SimplePeripheral 中、它会在 performPeriodicTask 中调用"SimpleProfile_SetParameter (SIMPLEPROFILE_CHAR4、sizeof (uint8)、&valueToCopy);"以定期发送通知。 您可以相应地实施电池电量通知。