Exemple #1
0
        public async void Bluetooth_SetHeading(int heading)
        {
            if (spheroSocket == null)
            {
                MessageBox.Show("Connect to Sphero first.");
                return;
            }

            byte[] package = new SetHeading(heading).ToPacket();
            await spheroSocket.OutputStream.WriteAsync(GetBufferFromByteArray(package));
        }
        public async void Bluetooth_SetHeading(int heading)
        {
            if (spheroSocket == null)
            {
                MessageBox.Show("Connect to Sphero first.");
                return;
            }

            byte[] package = new SetHeading(heading).ToPacket();
            await spheroSocket.OutputStream.WriteAsync(GetBufferFromByteArray(package));
        }