July 2017
Beginner to intermediate
390 pages
10h 53m
English
This is just one side of the story. The other side is listening for incoming connections. In the SetHolographicSpace method, add a call to SetupBluetoothWatcher() and add a new field to the class:
BluetoothLEAdvertisementWatcher _watcher;
We will use this as follows:
void SetupBluetoothWatcher()
{
_watcher = new BluetoothLEAdvertisementWatcher();
_watcher.Received += BluetoothWatcher_Connected;
var manufacturerData = new BluetoothLEManufacturerData();
manufacturerData.CompanyId = 0xFFFE;
_watcher.AdvertisementFilter.Advertisement.ManufacturerData.Add(manufacturerData);
_watcher.Start();
}
We create the watcher and add an eventhandler in case we see something. Next we tell the watcher we are only interested in ...
Read now
Unlock full access