Exemple #1
0
        public MainPageViewModel(IBluetoothSmartService bluetoothSmartService)
        {
            _bluetoothSmartService = bluetoothSmartService;
            _bluetoothSmartService.Devices.CollectionChanged += ConnectedDevices_CollectionChanged;

            _devices       = new ObservableCollection <BluetoothListItemViewModel>();
            _startScanning = new Command(StartScan);
            _stopScanning  = new Command(EndScan);
            _bluetoothSmartService.ScanningStateChanged += BluetoothLeServiceOnScanningStateChanged;
        }
 public DeviceDetailViewModel(IBluetoothSmartService bluetoothService)
 {
     _bluetoothService = bluetoothService;
 }
Exemple #3
0
 public ReadCharacteristicViewModel(IBluetoothSmartService bluetoothSmartService)
 {
     _bluetoothSmartService = bluetoothSmartService;
     _readValue             = String.Empty;
 }
 public WriteModalViewModel(IBluetoothSmartService bluetoothLeService)
 {
     _bluetoothLeService = bluetoothLeService;
 }