串口win通信

SerialPort * pSerialPort;
pSerialPort = new SerialPort();
pSerialPort->OpenCom(4, 1500000);
pSerialPort->SendDate(sendata,30);
pSerialPort->ReadDate(buf,30);

pSerialPort->CloseCom();

posted @ 2021-10-22 10:38  xmydis  阅读(52)  评论(0)    收藏  举报