Esempio n. 1
0
bool OTGWSerial::StopHardware()
{
	m_bIsStarted=false;
	terminate();
	StopPollerThread();
	return true;
}
Esempio n. 2
0
bool Meteostick::StopHardware()
{
	m_bIsStarted = false;
	terminate();
	StopPollerThread();
	return true;
}
Esempio n. 3
0
bool OTGWSerial::StopHardware()
{
	m_bIsStarted=false;
	if (isOpen())
	{
		try {
			clearReadCallback();
			close();
			doClose();
			setErrorStatus(true);
		} catch(...)
		{
			//Don't throw from a Stop command
		}
	}
	StopPollerThread();
	return true;
}