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.

CC2640R2F: how to use GATT_ReadMultiCharValues

Part Number: CC2640R2F


Hi, 

I'm trying to read multiple characteristics from peripheral device using GATT_ReadMultiCharValues() API function, using code below:

             attReadMultiReq_t req;

             uint8_t tmpb[] = {LO_UINT16(0x0021),
                               HI_UINT16(0x0021),
                               LO_UINT16(0x0024),
                               HI_UINT16(0x0024)};

             req.pHandles = tmpb;

             req.numHandles = 2;

             GATT_ReadMultiCharValues(connHandle, &req, selfEntity);

where 0x0021 and 0x0024 are my characteristics handlers. After calling GATT_ReadMultiCharValues() I don't get ATT_READ_MULTI_RSP, in fact I don't get nothing. Here is a sniffer capture from my central:

and here is sniffer capture using same peripheral and BTool v1.41.21 with LaunchXL CC2640R2F dev. board (with preloaded host_test example from SDK 1.50.00.58):

When using BTool everything is normal, but using central with given code I somehow send "Generic L2CAP Payload". Did I do something wrong with GATT_ReadMultiCharValues() API call or the issue is somewhere else?

Regards, Klemen