Can bleprofile_sendFindInfoReq read the discontinuous decriptor handle?

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

cross mob
YufengP_26
Employee
Employee
50 sign-ins First solution authored 25 sign-ins

Module:20736

SDK Version: WICED-Smart-SDK-2.2.3

Test conditions:

The test device has discontinuous descriptor handle such as 1-6...20-30

Test results:

Only descriptor handle 1~6 can be got by bleprofile_sendFindInfoReq.

Questions:

Can bleprofile_sendFindInfoReq read the discontinuous descriptor handle?

0 Likes
2 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

zhaohua

0 Likes
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

This is the intended behavior of the API. What you're seeing is defined in the spec: vol 3, Part G, 4.x.

According to the spec, it's your job at the application level to take the last received handle, increment it and pass that as the start handle of a second Find Information Request. Continue incrementing and restarting this process until the server sends back an Error Response code. This signals that there is nothing left to discover.

See puart_control app in the SDK for an example of this discovery protocol.

Jacob