Hi, I have made server which sends true value to device, but I'm looking for solution, how to do this differently. this code works fine
Qt Code:
QByteArray ba; out << true; clientConnection->write(ba);To copy to clipboard, switch view to plain text mode
how to change this line:
out << true;
to something like this
out << 01; //this is not working
I'm wondering how can I achieve same result by not using Boolean value true?
Or maybe it is possible to do the same without QDataStream and QByteArray
just do something like this:
clientConnection->write("1") // this is not working
Thanks for advice
Bookmarks