コード例 #1
0
        public async Task TestFleshlightLaunchFW12Cmd()
        {
            var msg = new FleshlightLaunchFW12Cmd(4, 35, 23);
            await testUtil.TestDeviceMessageDelayed(msg,
                                                    new List <(byte[], uint)>()
            {
                (Encoding.ASCII.GetBytes("1,\n"), (uint)KiirooBluetoothInfo.Chrs.Tx),
                (Encoding.ASCII.GetBytes("2,\n"), (uint)KiirooBluetoothInfo.Chrs.Tx),
                (Encoding.ASCII.GetBytes("3,\n"), (uint)KiirooBluetoothInfo.Chrs.Tx),
            }, false, 400);

            msg = new FleshlightLaunchFW12Cmd(4, 30, 51);
            await testUtil.TestDeviceMessageDelayed(msg,
                                                    new List <(byte[], uint)>()
            {
                (Encoding.ASCII.GetBytes("2,\n"), (uint)KiirooBluetoothInfo.Chrs.Tx),
            }, false, 500);
        }