{"repo":"adabru/BleWinrtDll","free":true,"listed":false,"github":"https://github.com/adabru/BleWinrtDll","clone":"git clone https://github.com/adabru/BleWinrtDll.git","description":"BLE for Unity 3d in Windows without UWP.","language":"C#","stars":213,"topics":["ble","unity"],"license":"WTFPL","category":"game-templates","readme_excerpt":"UWP BLE packed as C++ winrt dll This VisualStudio-project compiles to a C++-dll that can be imported into Unity. It wraps a part of the UWP BLE API inside a dll. The dll can be simply dropped into your Unity project and be used in the Unity Editor and the Windows standalone version. The Demo.unity scene in this repo uses non-blocking calls to avoid creating Threads. I would recommend to use threads, though. After getting acquainted with the standard C# Thread API and after making sure you're closing all your threads OnApplicationQuit (Unity API) to avoid Unity Editor freezes, using them is the easier workflow for BLE in my opinion. You'll need less lines of code and you can have less latency. For a threaded version, you can try out Joelx's Unity Ble Demo. If you distribute a Windows Standalone build to a different device, please ensure that your application requires the latest Microsoft Visual C++ Redistributable to be installed. Install Open Unity Package Manager in your project. Click Install package from git URL . Enter and confirm. Wait for the installation. Import the sample. Open the scene Demo.unity . Press play. Ensure your Bluetooth is turned on. Build There is a prebuilt dll included in this repo, BleWinrtDll Unity\\Assets\\BleWinrtDll.dll or DebugBle\\BleWinrtDll.dll (both are the same). But you can also build the dll yourself in VisualStudio. Follow these steps: - Open the file BleWinrtDll.sln with VisualStudio (tested with Community 2019). You may be asked to instal","default_branch":null,"files":null,"tree":[],"storefront":"/r/adabru","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adabru/BleWinrtDll/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}