This is a small Unity demo project showing an exemplary implementation of the BleWinrtDLL repository by adabru.
Included is a simple Unity scene containing a GUI listing scanned BLE devices and making the connection to a BLE device accessible via button click.
- Download the project folder and import it as a new project in Unity Hub.
- In Unity, open the
BleTest
scene. - Hit "play" to start the GUI.
- If you want to connect a device, you first need to fill in the corresponding fields
targetDeviceName
,serviceUuid
andcharacteristicUuids
in theBleTest.cs
file to match your BLE device. - (optional) A
BleWinrtDll.dll
is included, but you may also want to compile your own from the BleWinrtDLL repository