Hello members,
I have 2 boards in my architecture one in client central and one in the server peripheral configuration.
These are my pairing parameters of both side
gapPairingParameters_t gPairingParameters = {
.withBonding = gAppUseBonding_d,
.securityModeAndLevel = gSecurityMode_1_Level_3_c,
.maxEncryptionKeySize = mcEncryptionKeySize_c,
.localIoCapabilities = gIoNone_c,//gIoKeyboardDisplay_c
.oobAvailable = FALSE,
.centralKeys = gIrk_c,
.peripheralKeys = (gapSmpKeyFlags_t)(gLtk_c | gIrk_c),
.leSecureConnectionSupported = TRUE,
.useKeypressNotifications = FALSE,
};
when I run the code the client-side callback BleApp_GattClientCallback throws an error gAttErrCodeInsufficientEncryption_c .
The same architecture works fine with pairing and bonding disabled.
I'm guessing that the problem is with the pairing process but I couldn't find the reason.
Any help would be appreciated.
Thanks
Hello,
How are you enabling/disabling the bonding and pairing process? Could you please confirm that you are changing the definitions in the app_preinclude.h
/*! Enable/disable use of bonding capability */
#define gAppUseBonding_d 1
/*! Enable/disable use of pairing procedure */
#define gAppUsePairing_d 1
Those need to be also defined in that way
Regards,
Estephania