private void Button5Clicked() { if (GattInformations.Count > 0) { GattDeviceManager.OnDeviceCreated += GattDeviceManager_OnDeviceCreated; GattDeviceManager.GetDevice(MyDevices[0]); } }
private void Button2Clicked() { /* * GattDevice.OnDevicesAcquired += GattDevice_OnDevicesAcquired; * GattDevice.DevicesWithName("Test Device"); */ GattDeviceManager.StopWatcher(); GattDeviceManager.OnDevicesUpdated -= GattDeviceManager_OnDevicesUpdated; System.Diagnostics.Debug.WriteLine("Stop Watcher"); }
private void Button1Clicked() { GattDeviceManager.OnDevicesUpdated += GattDeviceManager_OnDevicesUpdated; GattDeviceManager.StartWatcher(); System.Diagnostics.Debug.WriteLine("Started Watcher"); }