You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the CCC descriptor is added explicitly from application then the indication or notification packets are not sent out from server device.
We found this issue is in attsProcWrite () function in atts_write.c file.
We had to move out the cccCback from else if condition. Below is our changes for your reference.
Because of cccCback callback is not called, the attsCccCb.pCccTbl value is not getting updated. Because of this the stack is not sending out the notification which the application is sending.
Issue request type
[ ] Question
[ ] Enhancement
[ ] Bug
The text was updated successfully, but these errors were encountered:
When the CCC descriptor is added explicitly from application then the indication or notification packets are not sent out from server device.
We found this issue is in attsProcWrite () function in atts_write.c file.
We had to move out the cccCback from else if condition. Below is our changes for your reference.
--- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/stack/att/atts_write.c
+++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/stack/att/atts_write.c
@@ -157,6 +157,11 @@ void attsProcWrite(attCcb_t *pCcb, uint16_t len, uint8_t *pPacket)
}
else
{
@@ -164,11 +169,6 @@ void attsProcWrite(attCcb_t *pCcb, uint16_t len, uint8_t *pPacket)
err = (*pGroup->writeCback)(pCcb->connId, handle, opcode, 0, writeLen,
pPacket, pAttr);
}
Because of cccCback callback is not called, the attsCccCb.pCccTbl value is not getting updated. Because of this the stack is not sending out the notification which the application is sending.
Issue request type
The text was updated successfully, but these errors were encountered: