Other Parts Discussed in Thread: CC2540, CC2541
Hy there,
I successfully developed an application on CC2540, that uses multiple calls to GATT_Notification to transfer some kBytes. Now, I try to port this application to C2650. Unfortunately, it does not work instantly...
For one, I have noticed, that the attHandleValueNoti_t struct definition has changed: In th CC2540 code, the value portion is defined as 20byte array within the struct, now, the data is only a pointer. Any reason for that?
And when I call GATT_Notification, nothing happens. What could I do wrong?
uint8 notifyData[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, 0x10, 0x11, 0x12, 0x13};
static void sendData(void )
{
uint16_t gapConnHandle;
GAPRole_GetParameter(GAPROLE_CONNHANDLE, &gapConnHandle);
attHandleValueNoti_t nData;
nData.len = 20;
nData.handle = 0x24; // handle of LYTENPROFILE_ACCDEBUG UUID. Don't know how to find out dynamic handle yet.
nData.pValue = notifyData;
//memcpy( nData.pValue, scanRspData, nData.len); // not used any more, because struct contains pointer rather than allocated memory
// Send the Notification
GATT_Notification( gapConnHandle, &nData, FALSE );
}