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); }
public DeviceController(IBleService blutoothservice) { _blutoothservice = blutoothservice; }
public CharacteristicController(IBleService blutoothService) { _blutoothService = blutoothService; }
public GattServiceController(IBleService blutoothService) { _blutoothService = blutoothService; }