Hi.
I wondering about the parameters of GATT_WriteCharDesc() API.
I checked the API guide and follow but i couldn't get ATT_WRITE_RSP as return.
And my questions of parameter is
1. what is the command flag?
2. Is the pValue for notification and indication? and len would be 2?
3. If I used bonding, sig should be 1?
Actually I call ANCS service and Notification Source.
my code is below
---------------------------------------------------------------------------------------------------
attWriteReq_t req;
req.handle = notiHandle; //> characteristic descriptor handle.
req.len = 2; //> for notified and indicated length?
req.pValue[0] = 0x01; //> for notification?
req.pValue[1] = 0x00; //> for indication?
req.sig = 0; //> for bonding or not?
req.cmd = 0; //> ???
VOID GATT_WriteCharDesc(pMsg->connHandle, &req, selfEntity);
---------------------------------------------------------------------------------------------------
Best regards,
Kim.