Hello! I make peripherial device with some custom services. It is connecting with smartphone. i need secure access with it with passkey (pin code).
My last result is when i try to connect with device from smartphone in bluetoth manager it displays pin code request, after entering pincode smartphone connects device. But also smartphone connects with devise without authorization if i try to connect with nRF-Connect. What i have to do to undo that?...UPDATE: solve it, with servise write_access and read_access parameters.
Also when i put wrong pin code Mcu restarts...Do I need to process some event? How can i chek BLE_GAP_EVT_AUTH_STATUS ? here my source file main.c