コード例 #1
0
 private void Button5Clicked()
 {
     if (GattInformations.Count > 0)
     {
         GattDeviceManager.OnDeviceCreated += GattDeviceManager_OnDeviceCreated;
         GattDeviceManager.GetDevice(MyDevices[0]);
     }
 }
コード例 #2
0
        private void Button2Clicked()
        {
            /*
             * GattDevice.OnDevicesAcquired += GattDevice_OnDevicesAcquired;
             * GattDevice.DevicesWithName("Test Device");
             */

            GattDeviceManager.StopWatcher();
            GattDeviceManager.OnDevicesUpdated -= GattDeviceManager_OnDevicesUpdated;
            System.Diagnostics.Debug.WriteLine("Stop Watcher");
        }
コード例 #3
0
 private void Button1Clicked()
 {
     GattDeviceManager.OnDevicesUpdated += GattDeviceManager_OnDevicesUpdated;
     GattDeviceManager.StartWatcher();
     System.Diagnostics.Debug.WriteLine("Started Watcher");
 }