KarmaMan82
KarmaMan82

Reputation: 1

QT 5.10.1 Serial-Port not sending, why?

There is no error while compiling and running the Binary as root! But on the receiving set is no signal, why? I've testet both connections:

If somebody would help me, my code is here:

https://github.com/KarmaMan1982/QTSerialSender

Upvotes: 0

Views: 132

Answers (1)

NonoxX
NonoxX

Reputation: 134

Your business logic, which is everything included between

QCoreApplication a(argc, argv);

and

return a.exec();

but excluding those lines won't do what you want. This should be part of a slot in a class that extends QObject. This slot would have to be invoked by any mean (for instance, a QTimer) when the application runs.

QSerialPort doesn't do anything before a.exec() is called.

Upvotes: 1

Related Questions