From dbdd1a03e27bddb1f8b856f3141b8bad72b43418 Mon Sep 17 00:00:00 2001 From: lemmingDev Date: Sat, 24 Feb 2024 13:23:24 +1000 Subject: [PATCH] Try to fix connection issues with ESP32 variants --- BleGamepad.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BleGamepad.cpp b/BleGamepad.cpp index 959aa73..4df4796 100644 --- a/BleGamepad.cpp +++ b/BleGamepad.cpp @@ -1412,7 +1412,9 @@ void BleGamepad::taskServer(void *pvParameter) BleGamepadInstance->hid->pnp(0x01, vid, pid, guidVersion); BleGamepadInstance->hid->hidInfo(0x00, 0x01); - NimBLEDevice::setSecurityAuth(BLE_SM_PAIR_AUTHREQ_BOND); + // NimBLEDevice::setSecurityAuth(BLE_SM_PAIR_AUTHREQ_BOND); + NimBLEDevice::setSecurityAuth(true, false, false); // enable bonding, no MITM, no SC + uint8_t *customHidReportDescriptor = new uint8_t[hidReportDescriptorSize]; memcpy(customHidReportDescriptor, tempHidReportDescriptor, hidReportDescriptorSize);