I'm receiving bytes from the USART and put them in the memory register. The bytes are the commands I have to read and reply with messages accordingly. As I know how to compare a single byte, would suggest me an algorithm to compare multiple bytes.
For example, the received bytes looks like this in hex 16 04 32 01 00 32. They are with different length, so the comparison would be more difficult.