async Task <byte[]> DoGetValue() { var result = await _descriptor.ReadValueAsync(Windows.Devices.Bluetooth.BluetoothCacheMode.Cached).AsTask().ConfigureAwait(false); if (result.Status == Uap.GattCommunicationStatus.Success) { return(result.Value.ToArray()); } return(null); }
byte[] PlatformGetValue() { var result = _descriptor.ReadValueAsync(Windows.Devices.Bluetooth.BluetoothCacheMode.Cached).GetResults(); if (result.Status == Uap.GattCommunicationStatus.Success) { return(result.Value.ToArray()); } return(null); }