AnsweredAssumed Answered

gAttErrCodeInsufficientEncryption_c error in client mode

Question asked by rahul singh on May 30, 2020
Latest reply on Jun 1, 2020 by Estephania Martinez

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.