Nice to meet you, I am an engineer living in Japan.
【Development environment】
"PCA10040 (nRF52832)" x 2 (center/periphery)
"SDK: 17.1.0"
"IDE: Segger Embedded Studio for ARM7.10a"
I have a question about BLE security.
I built a test environment using "PCA10040" for the central and peripheral, and tried simple communication.
I installed an app called "BLE Scanner" on my smartphone.
When I started the app, the device name advertised by the peripheral device was displayed, so when I clicked the "Connect" button, I was able to connect to the peripheral device from "BLE Scanner".
I don't want to connect my smartphone to a peripheral without entering a "password" or "passkey", so I want to increase security.
It turns out that there are four methods for authentication processing of BLE Central and Peripheral: "Just Works", "Passkey Entry", "Numeric comparison", and "Out Of Band".
I think that "Just Works" is good for this product because it is communication between devices without a screen.
question)
Please tell me the sample program of the authentication method using "Just Works".
It would be helpful if you could tell me the program code.
If there is any other better way, please let me know.