I am receiving tokens via TCP in byte arrays.
The first element within the byte array is a value of i.e. 253. When I receive the byte, it displays as -2 within the array.
Is this a sign bit issue? If this is correct, how do I convert the byte to a value of 253? (i.e. byteconverter.bytestoint(?) or ???)
thanks in advance
The first element within the byte array is a value of i.e. 253. When I receive the byte, it displays as -2 within the array.
Is this a sign bit issue? If this is correct, how do I convert the byte to a value of 253? (i.e. byteconverter.bytestoint(?) or ???)
thanks in advance