The API CyBle_GapSetLocalName can not work normally!

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

cross mob
Anonymous
Not applicable
        When Use The API to set the local device name,the advertisement data changed with bug,the Scan response data is not changed.   
0 Likes
4 Replies
Anonymous
Not applicable

I think both of them won't be updated.. Did you see that it updated advertisement data but not the scan response data?

0 Likes
Anonymous
Not applicable
        when I change the Local name from PSOC4TEST to TEST,the advertisement raw data: 02:01:06:0A:09:54:45:53:54:00:00:00:00:54:03:03:E0:FF; The scan response data: 0A:09:50:53:4F:43:34:54:45:53:54:02:0A:00.   
0 Likes
Anonymous
Not applicable

My bad, you are correct. I looked at the code and it looks like they are only updating the cyBle_discoveryData structure and not the cyBle_scanRspData structure.

   

Quick fix is to copy their implementation of "CyBle_ChangeAdLocalName" API and replcae cyBle_discoveryData.advData with cyBle_scanRspData.scanRspData.

0 Likes
Anonymous
Not applicable
        The new version has fixed the problem.Thanks!   
0 Likes