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

static passkey demo code for S110 stackV8.0/SDK10 of nrf51822

Dear all

I want to add the static pin to my project(s110 stackV8.0, based on SDK10), add the follow code to gap_params_init:

uint8_t passkey[] = STATIC_PASSKEY;
m_static_pin_option.gap_opt.passkey.p_passkey = passkey;
err_code =  sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &m_static_pin_option);

init the device manager. But it seems not work as phone can connect it successfully without type in passkey. Any link or demo code can I refer to ?

Regards Jenson

Parents Reply Children
No Data
Related