13 #include <QSerialPort>
19 : QThread(parent), _communication(communication)
30 emit
error(tr(
"Watek nie mogl otworzyc portu"));
34 emit
info(tr(
"Otwarto port szeregowy"));
void receiveData()
Receive line one by one in loop until end of communication.
bool closeSerialPort()
Close serial port.
void setDevice(QSerialPort *device)
Set serial device.
bool openSerialPort(const char *serialPort)
Open serial port.
void run() override
Start thread with all functionality.
FrameThread(Communication *communication=nullptr, QObject *parent=nullptr)
Construct new FrameThread object.
Communication * _communication
Communication class handle;.
void info(const QString &info)
Signal to be emmited to add information to logs.
void error(const QString &error)
Signal to be emmited when some error occured when running thread.
Header file for Communication class.
Header file for FrameThread class.