As we known we can set static passkey in peripheral side (s110) with the API sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &ble_opt) as below:
inline void setPassKey(void) { uint8_t passkey[] = "123456"; ble_opt_t ble_opt; ble_opt.gap.passkey.p_passkey = &passkey[0]; (void) sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &ble_opt); }
But the same API can't be used to set passkey in nrf51822 BLE central(s120 ) side. So how to set static passkey in nrf51822 BLE central(s120 )?