Dynamically Change BLE Advertisement Type in PSoC 4 BLE – KBA228426
Employee
Nov 21, 2019
08:19 PM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Nov 21, 2019
08:19 PM
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.
- 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.
Labels
- Tags:
- api
- application specific
- attribute
- characteristic
- cy8ckit-042 kit
- gatt database
- gatt db
- locally initiated
- peer initiated
- proc
- psoc 6ble
- psoc creator
- update
- value
- wireless usb
- write
- write request
Rate this article: