adabru / BleWinrtDll

BLE for Unity 3d in Windows without UWP.
Do What The F*ck You Want To Public License
168 stars 52 forks source link

Device not connecting after scanning #34

Open AmalPBanerji opened 2 years ago

AmalPBanerji commented 2 years ago

Tried "build and run" from unity with these settings, Architecture - Intel 64-but Build type - D3D project Target SDK version - Latest installed Min Platform version - 10.0.10240.0 VS Version - latest installed (2019) Build and run on - local machine Build config - Release copy references - untick copy pdb files - untick development build - untick IL2CPP code gen - faster runtime compression method - default

After running the application, scanning pressed, device selected, when scan for services given, " Failed to connect to device" error occurs.

adabru commented 2 years ago

For investigation, you can download and run the Microsoft's Bluetooth Low Energy sample and see whether scan for services works there. This library is like 97% a clone of that sample.

Does it never work, or does it work sometimes?

SightlessDog commented 1 year ago

Same happens to me rn but on the hololens 2, in the editor everything works fine but when I try it on the hololens I get this error "Failed to connect to device"

adabru commented 1 year ago

@SightlessDog, maybe the linked project in https://github.com/adabru/BleWinrtDll/issues/23#issuecomment-1035010515 can somehow help you? Though I'm not sure whether you have the same problem.

SightlessDog commented 1 year ago

@adabru thank you for the answer, well I had to go through that step, but the problem I had kind of got fixed from itself (I uninstalled the app and installed again after making a force rebuild )