Other Parts Discussed in Thread: CC2640
Hi,
I'm trying to migrate from CC2640 to CC2652 and I'm in the process of replacing the old GapRole configuration with the new method as outlined by the migration guide here
However, I'm struggling with the scan response buffer configuration. According to the migration guide linked above, I need to replace the parameter GAPROLE_SCAN_RSP_DATA with the following API calls:
- GapAdv_loadByBuffer()
- GapAdv_prepareLoadByBuffer()
- GapAdv_loadByHandle()
- GapAdv_prepareLoadByHandle()
- GapAdv_getBuffer()
The way that the old project did the scan rsp data configuration is as follows:
// Set scanRspData GAPRole_SetParameter(GAPROLE_SCAN_RSP_DATA, sizeof(scanRspData),scanRspData); GAPRole_SetParameter(GAPROLE_ADVERT_DATA, sizeof(advertData),advertData);
However I'm not sure about which API calls, listed above, I need to replace these two lines with. Could you please offer any advice on this matter?