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
BleTestscene. - Hit "play" to start the GUI.
- If you want to connect a device, you first need to fill in the corresponding fields
targetDeviceName,serviceUuidandcharacteristicUuidsin theBleTest.csfile to match your BLE device. - (optional) A
BleWinrtDll.dllis included, but you may also want to compile your own from the BleWinrtDLL repository