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.

主机打开从机的notify后,如果主机断开,已经打开的notify需要关掉吗,怎样关掉呢?

我现在主机和从机上电自动连接,然后主机打开notify以后和从机通信,可以正常通信。

但发现如果主机这时候复位了,自动连上后就无法正常通信了。打印发现主机一直停在 pMsg->method = 27 (ATT_HANDLE_VALUE_NOTI)

读出value = GATTServApp_ReadCharCfg( pItem->connHandle,simpleProfileChar4Config );

发现从机的notify开关一直是1。

请问主机打开从机的notify后,如果主机断开,已经打开的notify需要关掉吗,怎样关掉呢?