Dear sir,
I wants to connectivity from mobile to nRf52840-sdk using passcode, so any default code available or not please suggest
Dear sir,
I wants to connectivity from mobile to nRf52840-sdk using passcode, so any default code available or not please suggest
Hi Sangram,
If you want to have an example that show how to do pairing with passkey, you can have a look at the \examples\ble_peripheral\ble_app_gls example. The documentation is here.
I have already tested this example (ble_app_gls example) but not working properly, pls. suggest what is the default passcode in ble_app_gls example.
If you do a search, you can find many cases show you how to do static passkey.
For example this: https://devzone.nordicsemi.com/f/nordic-q-a/35675/how-to-use-static-passkey-for-a-no-display-no-output-peripheral
But first make sure you know how to use normal passkey (random generated).
dear sir,
I have no idea about normal passkey (random generated). pls. suggest for understanding
Please study the code of the ble_app_gls example. And get familiar on how the passkey is printed out on UART. Then you can combine the code to set the passkey using sd_ble_opt_set().
You can read more about the passkey pairing here.
Ok, pls. tell me one one think that which variable store random generated passkey in ble_app_gls example
Have you studied the code, please have a look inside ble_evt_handler() check for BLE_GAP_EVT_PASSKEY_DISPLAY event.
Have you studied the code, please have a look inside ble_evt_handler() check for BLE_GAP_EVT_PASSKEY_DISPLAY event.