This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can i start an advertising with a whitelist?

Hi all, I'm reading the ble_peripheral samples of the SDK. I know start a advertising with the function ble_advertising_start(); Now, i know a central address, then i want connect to that device. I want start the advertising with a whitelist for can be connected by that central only. How to modify the sample codes and do i need irks or something else? Thanks~~

Parents
  • Please take a look at this thread

    Updated

    When you call ble_advertising_init function, you give an evt_handler function for this module. That event handle module will be called with event BLE_ADV_EVT_WHITELIST_REQUEST and BLE_ADV_EVT_PEER_ADDR_REQUEST when your application calls ble_advertising_start in which your application provides whitelist details. Look at the message sequence chart for this here Your advertisement mode cannot be directed or directed_slow because whitelist is not used for those types.

Reply
  • Please take a look at this thread

    Updated

    When you call ble_advertising_init function, you give an evt_handler function for this module. That event handle module will be called with event BLE_ADV_EVT_WHITELIST_REQUEST and BLE_ADV_EVT_PEER_ADDR_REQUEST when your application calls ble_advertising_start in which your application provides whitelist details. Look at the message sequence chart for this here Your advertisement mode cannot be directed or directed_slow because whitelist is not used for those types.

Children
No Data
Related