hi
im creating application to receive data from serial port.I have received data from the serial port, now i want to check the received hex decimal value...
for eg:
I am having the received data in qbytearray i need to check each byte of the array like below
The problem is ,in array ,the value is stored like below...Qt Code:
QByteArray receiveddata; if (receiveddata==0x7e) { //then do the following }To copy to clipboard, switch view to plain text mode
receiveddata[0]=7
receiveddata[1]=e ,but i need receiveddata[0]=0x7e
how to achieve this!!! any help is highly respected!!
thanks
Bookmarks