Reputation: 1
I try to use LibSerial’s class for serial communication (with an ATMega32A) through a COM port. As soon as I include the SerialStream.h I get several error messages from the file SerialPort.h.
#include "SerialStream.h"
You can see the errors I get here. https://i.sstatic.net/s8ZdC.png
Since I did not fully understand the installation of LibSerial, I think I use the class the wrong way. I use the compiler QT Creator and the OS is Windows 7. Feel free to ask for more information if you need it.
Upvotes: 0
Views: 498
Reputation: 93468
The question is not answerable in it's current format.
Nevertheless, if you are willing to use Qt's features to read from a serial port, I could point you to a demo I wrote a while ago.
Quick notes: main.cpp retrieves information and detects all serial ports on the computer and presents a menu to let the user choose which port to read from. Then it uses QSerialPort
to open a connection to that specific port, and the reading part is done by SerialPortReader
, a class implemented on that project.
Upvotes: 0