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);
        }
Ejemplo n.º 2
0
 public DeviceController(IBleService blutoothservice)
 {
     _blutoothservice = blutoothservice;
 }
Ejemplo n.º 3
0
 public CharacteristicController(IBleService blutoothService)
 {
     _blutoothService = blutoothService;
 }
Ejemplo n.º 4
0
 public GattServiceController(IBleService blutoothService)
 {
     _blutoothService = blutoothService;
 }