July 2017
Beginner to intermediate
390 pages
10h 53m
English
In the SetHolographicSpace method, add a call to the SetupBluetoothAdvertisement(); method. Also add a private field of type BluetoothLEAdvertisementPublisher to the class and call it _publisher:
BluetoothLEAdvertisementPublisher _publisher;
The method we call looks as follows:
void SetupBluetoothAdvertisement()
{
_publisher = new BluetoothLEAdvertisementPublisher();
var manufacturerData = new BluetoothLEManufacturerData();
manufacturerData.CompanyId = 0xFFFE;
var myIpAddress = GetMyIPAddress();
var writer = new DataWriter();
writer.WriteString(myIpAddress);
manufacturerData.Data = writer.DetachBuffer();
_publisher.Advertisement.ManufacturerData.Add(manufacturerData);
_publisher.Start();
}
First, we create ...
Read now
Unlock full access