private void IndicateCharacteristic_ValueChanged(GattCharacteristic sender, GattValueChangedEventArgs args) { var value = args.CharacteristicValue; //Debug.WriteLine($"Read data : {BitConverter.ToString(value.ToArray())}"); //Debug.WriteLine($"Read data : {value.Length}"); byte[] readBytes = new byte[value.Length]; using (DataReader reader = DataReader.FromBuffer(value)) { reader.ReadBytes(readBytes); } PenController.OnDataReceived(readBytes); }