Author: GeonaM_26 Version: **
In a BLE GATT Server, the BLE advertisement type can be updated. You can stop the advertisement, update the advertisement type (advType), and restart advertisement which will advertise with the new type.
- Exit advertisement/discovery mode using CyBle_GappStopAdvertisement(). The exiting the discovery mode generates the CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP event. Firmware must check whether the event is generated after exiting the discovery mode.
- If yes, update the advType and enter discovery mode using CyBle_GappEnterDiscoveryMode(&cyBle_discoveryModeInfo). You can also use CyBle_GappStartAdvertisement(parameter) to restart advertisement.