Socket, ByteArray - readUnsignedByte - reads 0x0A but returns 0

Hi,

I have strange problem with readUnsignedByte in Socket class.

I’m connected to the socket which is sending me unsigned bytes.
I’m then reading this bytes with readUnsignedByte function.

Everything works fine, BUT if “socket” send me 0x0A byte, readUnsignedByte read is as 0!!??

Here is actual example:

First how I see received bytes in terminal:
01 0B 02 00 0A 00 01 00 01 00 01 00 01 00 01 E3 (E3 is simple checksum)

Now what flash “readUnsignedByte” reads:
01 0B 02 00 00 00 01 00 01 00 01 00 01 00 01 E3

You can see that everything is read ok but 0A which flash see as 0.
As you can see checksum is same as in terminal.

Why 0x0A is seen as 0 by flash?

I would be glad if anyone could give me any suggestion how to solve this problem or at least where to search for an error.

Thank you a lot and best regards,
Gregor Čepek