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

cross mob

Dynamically Change BLE Advertisement Type in PSoC 4 BLE – KBA228426

Dynamically Change BLE Advertisement Type in PSoC 4 BLE – KBA228426

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

Author: GeonaM_26           Version: **

Translation - Japanese: PSoC4 BLEでのBLEアドバタイズタイプの動的変更- KBA228426 - Community translated (JP)

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.
0 Likes
376 Views
Contributors