This content has been marked as final. Show 1 reply
We do not have an API to update the advertisement type parameter. User can stop advertisement, update advType and re-start advertisement for this purpose.
- You can stop the advertisement using CyBle_GappStopAdvertisement() API. This will exit from the discovery mode.
- Exiting the discovery mode will generate CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP event. Use a flag to confirm whether this event is generated after the CyBle_GappStopAdvertisement() call.
- If yes, update the advType and enter discovery mode using CyBle_GappEnterDiscoveryMode(&cyBle_discoveryModeInfo). You can also use CyBle_GappStartAdvertisement(parameter) to restart advertisement.