public byte[] ReadCharacteristic(Bluetooth.Models.Characteristic characteristic)
        {
            var nativeCharacteristic = (GattCharacteristic)characteristic.NativeCharacteristic;

            return(nativeCharacteristic.ReadValueAsync(BluetoothCacheMode.Uncached).GetResults().Value.ToArray());
        }
 public async Task WriteCharacteristicValue(Bluetooth.Models.Characteristic characteristic, byte[] value)
 {
     var nativeCharacteristic = (GattCharacteristic)characteristic.NativeCharacteristic;
     await nativeCharacteristic.WriteValueAsync(value.AsBuffer(), GattWriteOption.WriteWithoutResponse);
 }