This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set a static passkey??

Hi,

I am working on the sample ble_gls app provided in the SDK 8.1. Also i am using S110 softdevice version 8.0.

I want to add static passkey to my code. I made the following changes in the code:

In function gap_params_init(), i added the following code:

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

Is this all the changes that i need to make or do i have to make more changes.

Thanks & Regards, Sumit

Parents Reply Children
No Data
Related