Changing GAPP Discovery mode on startup

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

cross mob
Anonymous
Not applicable

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?

0 Likes
1 Reply
Anonymous
Not applicable

Are you using the CyBle_GappEnterDiscoveryMode ()API or the CyBle_GappStartAdvertisement(). You either need to use the GappEnterDiscoveryMode API if you are changing the advType parameter.,

   

Or you need to go to the source code of the GappStartAdvertisement API (right click the API and select "go to definition") and change the advType parameter there.

   

Regards,

   

- Madhu Sudhan

0 Likes