当我使用腻子时,一个输入等于两个输出。但是,当我尝试对C#进行编码时,返回的唯一输出是第一个输出,它是SpeedAc NXT的fix命令的回显。
//This will pass the SpeedAc NXT command into the ASCII
//and store it as a byte array.
Byte[] data = aSCII.GetBytes(message);
//Send the command to the connected TCPSERVER
stream.Write(data, 0, data.Length);
//Read the TCPSERVER response bytes
int bytes = stream.Read(data, 0, data.Length);
responseData = aSCII.GetString(data, 0, bytes);
listBox1.Items.Add(responseData);
我希望这两个输出将显示在listBox1上,但它只显示第一个输出,即SpeedAc NXT的命令。