Last active
June 2, 2018 07:03
-
-
Save nogawanogawa/05f58366664afee95974c0e46b1959c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BluetoothLEAdvertisementWatcher _Watcher; | |
void SetupBluetoothWatcher() | |
{ | |
_watcher = new BluetoothLEAdvertisementWatcher(); | |
_watcher.Recieved += BluetoothWatcher_Connected; | |
var manufacturerData = new BluetoothLEManufacturerData(); | |
manufacturerData.CompanyId = 0xFFEE; | |
_watcher.AdvertisementFilter.Advertisement.ManufacturerData.Add(manufacturerData); | |
_watcher.Start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment