PSoC 4 BLE - read multiple charachteristic values - how to know which response is which char?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I have a BLE central and a BLE peripheral with multiple characteristics.
My BLE central reads the values using CyBle_GattcReadCharacteristicValue( connHandle, readRequestParam ).

   

Now in the event callback for the CYBLE_EVT_GATTC_READ_RSP event, I can not see a direct way to distinguish, which characteristics values I am getting when I try to read all values at the same time.
I know I can use a state machine approach to read each characteristic one by one and setting the current characteristics handle globally during the read process, but this seems a bit to much hustle.

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

Currently there is no way to directly distinguish the characteristic. You will need to read and then decode.

   

Thanks,

   

Hima

View solution in original post

0 Likes
2 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

Currently there is no way to directly distinguish the characteristic. You will need to read and then decode.

   

Thanks,

   

Hima

0 Likes
Anonymous
Not applicable

Thank you

0 Likes