Dynamically Change BLE Advertisement Type in PSoC 4 BLE – KBA228426

Version 3

    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.

     

    1. 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.
    2. If yes, update the advType and enter discovery mode using CyBle_GappEnterDiscoveryMode(&cyBle_discoveryModeInfo). You can also use CyBle_GappStartAdvertisement(parameter) to restart advertisement.