public MainPageViewModel(IBleDeviceService bleDeviceServiceIn) { BleDeviceService = bleDeviceServiceIn; BleDeviceService.DeviceDetected += OnDeviceDetected; BleDeviceService.DeviceConnectionStateChanged += OnDeviceConnectionChanged; }
public ScanReadingCommand(IBleDeviceService deviceServiceIn) { deviceService = deviceServiceIn; deviceService.DeviceDetected += OnDeviceDetected; }
public ScanForDeviceCommand(IBleDeviceService scanServiceIn) { scanService = scanServiceIn; scanService.DeviceDetected += OnDeviceDetected; }