mohanakrishnan
18th November 2009, 08:32
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
QByteArray receiveddata;
if (receiveddata==0x7e)
{
//then do the following
}
The problem is ,in array ,the value is stored like below...
receiveddata[0]=7
receiveddata[1]=e ,but i need receiveddata[0]=0x7e
how to achieve this!!! any help is highly respected!!
thanks
:confused::confused:
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
QByteArray receiveddata;
if (receiveddata==0x7e)
{
//then do the following
}
The problem is ,in array ,the value is stored like below...
receiveddata[0]=7
receiveddata[1]=e ,but i need receiveddata[0]=0x7e
how to achieve this!!! any help is highly respected!!
thanks
:confused::confused: