protected string StartSerialReading(SerialPortData serialPortData, HardwareSerialProtocolName protocol, ref string Data) { string res = serialPortData.StartCommandTrans(protocol.ToString(), GetSerialData); if (res == "") { Data = serialPortData.Data; } return(res); }
protected void StartSerialRealSend(SerialPortData serialPortData, HardwareSerialProtocolName protocol) { serialPortData.StartRealSend(protocol.ToString(), "", null, 500); }