Changing GAPP Discovery mode on startup | Cypress Semiconductor
Changing GAPP Discovery mode on startup
I want to be able to change between CYBLE_GAPP_SCAN_ANY_CONN_ANY and CYBLE_GAPP_SCAN_ANY_CONN_WHITELIST
modes based on some external input. Before starting the advertisement, I tried writing to cyBle_discoveryModeInfo.advParam->advType on startup, but the value is simply not used (the original value is still being used).
Is there an API that I am missing? Am I doing something wrong?