notification刚开始都是关闭的,你需要通过主机发送如下命令enable. To enable notifications, you must write a value of 0x0001 to the client characteristic configuration descriptor (CCCD). If you know the handle of the client characteristic descriptor, you can enable notifications by using the following code: attWriteReq_t writeReq; Before doing this, you may also need to discover the handle of the CCCD. Some example of this process can be found in the TimeApp project which is included in the SDK. Specifically, look in the file 'timeapp_discovery.c |
|
来自: iamlijin > 《TI CC2540》