I am reading data from another system using the serial port. I read packets of 133 bytes. The second byte is the packet number, and the third byte is the negative value of the packet number.
The problem is that the type bytehas a range from -128 to 127. When I try to read -129 (outside the byte range), it will give a value as 127.
What can I do, can I get -129?
rohini
source
share