Part Number:LAUNCHXL-CC2640R2
Hay,
my question is about how to implement the so called "Just Works" mechanism described in the GAP Bond Manager and LE Secure Connections section
in the SimpleLink cc26x2 SDK BLE5-Stack User's Guide.
Currently i'm working with the github example "spp_ble_client" and "spp_ble_server".
My actual configurations are:
SERVER:
uint32_t passkey = DEFAULT_PASSCODE; // passkey"000000"
uint8_t pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
uint8_t mitm = FALSE;
uint8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONLY;
uint8_t bonding = TRUE;
CLIENT:
uint32_t passkey = DEFAULT_PASSCODE; // "000000" for testing
uint8_t pairMode = DEFAULT_PAIRING_MODE; // set GAPBOND_PAIRING_MODE_INITIATE to initiate pairing
uint8_t mitm = DEFAULT_MITM_MODE; // FALSE
uint8_t ioCap = DEFAULT_IO_CAPABILITIES;
uint8_t bonding = DEFAULT_BONDING_MODE; // defined as TRUE
Additionally my PDU size is >=69, and i set OSAL_SNV=2 in the build config.
I expected the devices connect like they did before. But If i start both devices now it doesn't go further than "Auto connecting..." and displays a Debug message "Pairing failed".
Are this settings right/ did i miss something? And what else could be the Problem in this situation?
Best regards,
Sebastian