110,538
社区成员
发帖
与我相关
我的任务
分享
serialPort1.Open();
string txt = "hehe";
byte[] tempByte = System.Text.Encoding.Default.GetBytes(txt);
serialPort1.Write(tempByte,0,tempByte.Length);
印象中是这么写的,我没东西测试,如果错了当没看见吧