When Use The API to set the local device name,the advertisement data changed with bug,the Scan response data is not changed.
I think both of them won't be updated.. Did you see that it updated advertisement data but not the scan response data?
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.
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.
The new version has fixed the problem.Thanks!