Cannot pair on windows 11 and android, works fine on MacOS
Hello! When I try to pair on windows, it shows a "try to connect again to the device"(or a similar message, I have the os in italian) after trying for a really short time. On android it try for longer, but the result is the same. On mac i need to try 1/2 times maybe, but it seems to work fine... It's the multiple buttons example, but with only 2 buttons, and same happens when trying with a platformio project i found(from github). I'm on latest version
Only run into connection issues, if another BLE host/server device is scanning for bluetooth devices and lists my BLE-Gamepad device. Solution was to disconnect and turn off all bluetooth hosts/servers while trying to pair device initially. I have been thinking of adding an LED noting if my BLE-Gamepad is connected or advertising.
I'm testing if it's actually working good, but I maybe found a solution. trying an example for nimble, i found that it works "good", just need to do some retries for actually pairing, but not a big deal. The main difference in the init for the server was that in the example of nimble-arduino, they call the setMinPreferred with a 0x12, i tried to add it to the module, and now it seems to work... I'll do some more test, if it work maybe I create a merge request
@SirSlotocato would you mind to share more details what fixes it? I'm having the same issue.
@seikosantana sorry i missed the notif mail T_T I just added to line 1418 in BleGamepad.cpp
pAdvertising->setMinPreferred(0x12);
you can find the file in the library, and it's just a workaround.
It's not a real fix, it works better but sometimes it has a lot of delay. and it need a lot of retryes to actually connect, but after its paired it work, just with the delay i said before.
@SirSlotocato there have been a number of improvements and releases, would you be keen on updating, testing and reporting if your issues was resolved?
Thanks
@LeeNX, this weekend i'll try on some random esp i can find, im going to update here with the results, hoping it's goin to be good news c:
Please try with the newly released https://github.com/lemmingDev/ESP32-BLE-Gamepad/releases/tag/v0.6.3 as it resolves a serious Windows reconnection bug
Will close due to no feedback provided
Feel free to post here if issue persists and I'll reopen