public DeviceInformationPageViewModel(IBleService bleService, IPageDialogService dialogService)
        {
            this.bleService    = bleService;
            this.dialogService = dialogService;

            AvailableDevices        = new ObservableCollection <string>();
            foundDevices            = new Dictionary <string, Services.DeviceBluetoothLe.Device.IDevice>();
            ScanForDevicesCommand   = new DelegateCommand(OnScanForDevicesCommand, () => !ScanningForDevices);
            ConnectDeviceCommand    = new DelegateCommand(OnConnectDeviceCommand, () => !Connecting);
            DisconnectDeviceCommand = new DelegateCommand(OnDisconnectDeviceCommand, () => !Disconnecting);
            ToggleLedCommand        = new DelegateCommand(OnToggleLedCommand);
        }
예제 #2
0
 public DeviceController(IBleService blutoothservice)
 {
     _blutoothservice = blutoothservice;
 }
예제 #3
0
 public CharacteristicController(IBleService blutoothService)
 {
     _blutoothService = blutoothService;
 }
예제 #4
0
 public GattServiceController(IBleService blutoothService)
 {
     _blutoothService = blutoothService;
 }