esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

driver error on Windows

Open 13Pixel opened this issue 2 years ago • 5 comments
trafficstars

Hello, I'm having some issues with HID and windows. On Linux everything work fine.

I modified Simple ble server example and added NimBLEHIDDevice. Problem is that on Windows I get driver error, on this bluetooth device.

Does anyone had similar issues?

Thanks.

13Pixel avatar Nov 07 '23 12:11 13Pixel

@13Pixel - I am experiencing the same issue. Did you find a fix for this?

thomasMEBaker avatar Jan 24 '24 15:01 thomasMEBaker

Unfortunately no, Couldn't find way to fix this, so put it on hold till I'll have time to figure it out.

13Pixel avatar Feb 06 '24 13:02 13Pixel

Do you have bonding enabled? I believe it's a requirement in windows.

h2zero avatar Feb 06 '24 15:02 h2zero

As in "Persist the BLE Bonding keys in NVS" within the Nimble Options?

thomasMEBaker avatar Feb 06 '24 15:02 thomasMEBaker

You should enable that as well as set the device to bond by calling NimBLEDevice::setSecurityAuth(true, false, true); You'll also need to call NimBLEDevice::startSecurity in the on connect callback or set the characteristic properties to require encryption.

h2zero avatar Jun 14 '24 17:06 h2zero