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.

CC2640R2L: 使用Notify向主机发送数据,如何做到不需要主机修改CCC的值,直接进行Notify

Part Number: CC2640R2L
Other Parts Discussed in Thread: CC2640

我们使用LightBlue作为主机调试时,我们发现会运行以下程序来修改CCC的值为0x0100:

函数  Profile_WriteAttrCB():

case GATT_CLIENT_CHAR_CFG_UUID:
            status = GATTServApp_ProcessCCCWriteReq( connHandle, pAttr, pValue, len,
                                                     offset, GATT_CLIENT_CFG_NOTIFY );

这样LightBlue就可以收到从机CC2640通过Notify上传上来的数据

但是我们现在需要适配一个软件,这个软件中蓝牙方法没有操作CCC的值来使能Notify,直接监听Notify,我们在使用这个软件时可以正常写入数据,但是接收Notify时接收不到,通过调试情况来看,程序没有运行以上代码来使能Notify;

所以我们需要在CC2640代码中保持CCC的值默认使能,请问如何做到这一点?