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

BLE Peripheral Passphrase example

Hello,

I am trying to implement a basic BLE connection between the nRF52840 Dongle and an Android Device (nRF Connect). I wanted to secure this BLE connection with a passphrase, ie, on trying to connect to the dongle, the android device will be prompted to enter the 6 digit passphrase and then only it should be able to connect to the dongle. I tried an example mentioned in this post which implemented passphrase, but after flashing it on the dongle, the dongle was not working as expected. 

Anyway, is there any example available in the SDK that implements such a BLE connection? It would be great to get some guidance. Please let me know if you need more information to help me. 

PS: I am using the nRF 17.0.2 SDK, nRF52840 Dongle, nRF Connect and Segger Embedded Studio

  • Hello Amanda

    Thank you very much for your reply. I was able to protect the write permission of the characteristics. I was trying to combine the ble_app_blinky program and the program which I have right now which is based on the example you uploaded here

    The program compiles and I could flash it on the dongle, but then the DEBUG log shows log_init completed and then results in a FATAL ERROR and then reboots. This repeats. Would it be possible for you to look into my code? I am attaching the example folder with this post. Thank you in advance. 

    ble_app_template_test.zip

Related