Hi all,
I've found a solution to the problem.
void Aansturing::sendPWM(int speedout)
{
if (port->isOpen()==0){
logwindow->append("Cannot send message (port closed)");}
else {
signalout3.append(speedout);
port->write(signalout3, 1);
PWMdata=signalout2;}
}
void Aansturing::sendPWM(int speedout)
{
if (port->isOpen()==0){
logwindow->append("Cannot send message (port closed)");}
else {
QByteArray signalout3;
signalout3.append(speedout);
port->write(signalout3, 1);
PWMdata=signalout2;}
}
To copy to clipboard, switch view to plain text mode
So, when the string is declared as an QByteArray, the QExtSerial libary sends the data without converting it to ascii codes.
Just posting it here for anyone else who has the problem
Thank you all for your time.
DrDonut
Bookmarks