- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Part of application I'm developing needs to be able to store last n advertisement reports in array. How can I do it inside CY_BLE_EVT_GAPC_SCAN_PROGRESS_RESULT event?
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aaartis1 ,
The CY_BLE_EVT_GAPC_SCAN_PROGRESS_RESULT will have an event parameter of type cy_stc_ble_gapc_adv_report_param_t that will have all information about the adv packet. You can create a new object of this type or create a new structure with necessary data that you want to store from the adv packet and store the adv report in that structure.
For example,
cy_stc_ble_gapc_adv_report_param_t adv_report[10]; //Can store 10 devices adv data
You can turn on Duplicate filtering to avoid the same device getting reported multiple times.
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @aaartis1 ,
The CY_BLE_EVT_GAPC_SCAN_PROGRESS_RESULT will have an event parameter of type cy_stc_ble_gapc_adv_report_param_t that will have all information about the adv packet. You can create a new object of this type or create a new structure with necessary data that you want to store from the adv packet and store the adv report in that structure.
For example,
cy_stc_ble_gapc_adv_report_param_t adv_report[10]; //Can store 10 devices adv data
You can turn on Duplicate filtering to avoid the same device getting reported multiple times.
Bragadeesh