Ejemplo n.º 1
0
        private async Task WriteValue()
        {
            var writer = new DataWriter();

            writer.WriteBytes(new byte[] { WRITE_STATE });
            await WriteData.WriteValueAsync(writer.DetachBuffer());
        }
Ejemplo n.º 2
0
        public override async Task RequestBatteryLevelAsync()
        {
            var writer = new DataWriter();

            writer.WriteBytes(new byte[] { WRITE_BATTERY });
            await WriteData.WriteValueAsync(writer.DetachBuffer());
        }