private async Task WriteValue() { var writer = new DataWriter(); writer.WriteBytes(new byte[] { WRITE_STATE }); await WriteData.WriteValueAsync(writer.DetachBuffer()); }
public override async Task RequestBatteryLevelAsync() { var writer = new DataWriter(); writer.WriteBytes(new byte[] { WRITE_BATTERY }); await WriteData.WriteValueAsync(writer.DetachBuffer()); }