bool CAirCondition::OpenComm(LsComm::CComPort::Parity parity)
{
if(m_ComPort.IsOpen())
m_ComPort.Close();
if(!m_ComPort.Open(_comPort,LsComm::CComPort::ManualReceiveByQuery,9600,parity,8,LsComm::CComPort::OneStopBit))
return false;
else
return true ;
}
m_ComPort.Output(sendData,1);
m_ComPort.GetInput(receData,1,1000);