Пример #1
0
 void sensor_ConnectionStateChanged(IBleDevice sender, BleConnectionStateChangedEventArgs e)
 {
     if (e.NewState == BleConnectionState.Disconnected)
     {
         this.SelectedDevice = null;
     }
 }
Пример #2
0
 void BleCyclingSensor_ConnectionStateChanged(IBleDevice sender, BleConnectionStateChangedEventArgs e)
 {
     RaisePropertyChanged("ConnectionState");
     if (ConnectionState == BleConnectionState.Connected)
     {
         this.DiscoverServices();
     }
 }