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

connecting to specific device

hi nordic,

i had a nrf52 dk where it should only advertise to specific device like my phone with nrf connect app and that nrf52 dk should not advertise to other devices so that other devices cannot see any information of my nrf52dk

for that what should i do

my sdk version is nRF5_SDK_15.2.0 and softdevice is S132

here is my code what changes should i do for such functionality

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdint.h>
#include <string.h>
#include "ble_advertising.h"
#include "nordic_common.h"
#include "nrf.h"
#include "nrf_soc.h"
#include "nrf_drv_saadc.h"
#include "nrf_sdm.h"
#include "app_error.h"
#include "ble.h"
#include "ble_err.h"
#include "ble_hci.h"
#include "ble_srv_common.h"
#include "ble_advdata.h"
#include "ble_tps.h"
#include "ble_ias.h"
#include "ble_lls.h"
#include "ble_bas.h"
#include "ble_conn_params.h"
#include "ble_conn_state.h"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thank you