Using a DLL to acess BTLE inside Unity
I have built a C# DLL which reads a BTLE device, this works fine with a test program which references the DLL without using Unity.
However when I try to use it inside unity I get
Error: Could not load signature of GyroManager:get_GyroDeviceFilter due to: Could not load file or assembly 'Windows.Foundation.UniversalApiContract, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:Windows.Foundation.UniversalApiContract, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null type: member:(null) signature:
It looks like its looking for the API to use BTLE which is part of Windows.SDK.Contracts
How do I tell unity where to find this, it does not seem to be a DLL, just a set of references.
If thats not possible are there any other ways of using Native Windows BTLE code from within unity please?
Your answer
![](https://koobas.hobune.stream/wayback/20220612212524im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Missing Reference Exception 1 Answer
Follow camera script shows error after my player die 0 Answers
Missing Reference. 0 Answers
Can't drag variables between different scenes 1 Answer
Missing reference on loadLevel when the object exist...why? :( 1 Answer