Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device not connecting after scanning #34

Open
AmalPBanerji opened this issue Aug 11, 2022 · 4 comments
Open

Device not connecting after scanning #34

AmalPBanerji opened this issue Aug 11, 2022 · 4 comments

Comments

@AmalPBanerji
Copy link

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
Copy link
Owner

adabru commented Aug 14, 2022

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
Copy link

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
Copy link
Owner

adabru commented Sep 3, 2022

@SightlessDog, maybe the linked project in #23 (comment) can somehow help you? Though I'm not sure whether you have the same problem.

@SightlessDog
Copy link

@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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants