Пример #1
0
        private async Task WriteValue()
        {
            var writer = new DataWriter();

            writer.WriteBytes(new byte[] { WRITE_STATE });
            await WriteData.WriteValueAsync(writer.DetachBuffer());
        }
Пример #2
0
        public override async Task RequestBatteryLevelAsync()
        {
            var writer = new DataWriter();

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