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

SDK14 Custom Passkey Encryption

Board: PCA10040 (NRF52832)

SDK: 14.1

I'm trying to setup a BLE configuration where once the two devices connect, the peripheral will only continue its connection if the central requests an encrypted connection. The handshaking will then take place as outlined in this post.

I want to define a custom key however that will be static on both the central side (our Android application) so that I can hardcode this on the peripheral side. I know this isn't secure but it's how we want to start this whole process.

It looks like the tutorial on this topic is a bit outdated for SDK14 as some of the files don't even exist anymore. Based on the post above, do I just need to define

*p_pass_key

in the

ble_gap_opt_passkey_t

structure and then the softdevice will take it from there? Or is there more involved?

Parents Reply Children
No Data
Related