2021-04-26 01:53 AM
aci_gatt_write_char_desc(aP2PClientContext[index].connHandle,
aP2PClientContext[index].P2PClientDescHandle,
2,
(uint8_t *)&enable);
then notification is received correctly.
case APP_BLE_ENABLE_NOTIFICATION_DESC:
APP_DBG_MSG("* GATT : Enable Server Notification\n");
tBleStatus lclStat = aci_gatt_write_char_desc(aP2PClientContext[index].connHandle,
aP2PClientContext[index].P2PClientDescHandle,
2,
(uint8_t *)&enable);
for(dly2 = 0; dly2 < 0x1FF; dly2++)
for(dly = 0; dly < 0xFFFF; dly++);
lclStat = 0;
for(dly = 0; dly < 0xFFFF; dly++);
aP2PClientContext[index].state = APP_BLE_CONNECTED;
break;
Thanks in advance.
Kind Regards,
Aditya Ayachit