Skip to content

Commit

Permalink
Try to fix connection issues with ESP32 variants
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmingDev authored Feb 24, 2024
1 parent 3fd1360 commit dbdd1a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BleGamepad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbdd1a0

Please sign in to comment.