Exemplo n.º 1
0
        /// <summary>
        /// Send a command to the device
        /// </summary>
        /// <param name="command">The command to send</param>
        internal async Task SendCommand(byte command)
        {
            Task run = new Task(() => {
                var data = launcher.CreateCommand(command);
                device.SendData(data);
            });

            run.Start();
            await run;
        }