Skip to content

Instantly share code, notes, and snippets.

@nogawanogawa
Last active June 2, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nogawanogawa/05f58366664afee95974c0e46b1959c1 to your computer and use it in GitHub Desktop.
Save nogawanogawa/05f58366664afee95974c0e46b1959c1 to your computer and use it in GitHub Desktop.
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