diff --git a/BleKeyboard.cpp b/BleKeyboard.cpp index 48a8930..f217702 100644 --- a/BleKeyboard.cpp +++ b/BleKeyboard.cpp @@ -127,7 +127,13 @@ void BleKeyboard::begin(void) #else BLESecurity* pSecurity = new BLESecurity(); + +#if defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3) + pSecurity->setAuthenticationMode(ESP_LE_AUTH_BOND); +#else pSecurity->setAuthenticationMode(ESP_LE_AUTH_REQ_SC_MITM_BOND); +#endif + #endif // USE_NIMBLE