예제 #1
0
 public int Transport(ref byte[] sendData, out byte[] receiveData)
 {
     _baseSerial.Init();
     _baseSerial.Open();
     _baseSerial.SendByte(ref sendData);
     _baseSerial.ReceiveByte(out receiveData);
     _baseSerial.Close();
     return(0);
 }
예제 #2
0
 public int Transport(ref string sendData, out string receiveData)
 {
     _baseSerial.Init();
     _baseSerial.Open();
     _baseSerial.SendString(ref sendData);
     _baseSerial.ReceiveString(out receiveData);
     _baseSerial.Close();
     return(0);
 }