I guess you mean the segmentation fault.compiled successfully.but still the same error comes .
Your code has the following problems:
You are allocating the serial port on to a local pointer.Qt Code:
QextSerialPort *note= new QextSerialPort("/dev/ttyS0");To copy to clipboard, switch view to plain text mode
You will not be able to access the serial port outside the constructor.
'note' needs to be a member variable.
Where is the code that handels the reading/writing to the serial port?





Reply With Quote
Bookmarks