Hello,
I have a pcb that comunicates but when I read the byte that the microcontroller sends to tablet is trasformed. For instance the 0x01 that microcontrollers sends the android program show this nymber as -63. I read that bytes in java is always signed and I have to make logic AND (&) in order to transform the -63 to 1. Could anyone explain me why a byte is signed in java?
I have a pcb that comunicates but when I read the byte that the microcontroller sends to tablet is trasformed. For instance the 0x01 that microcontrollers sends the android program show this nymber as -63. I read that bytes in java is always signed and I have to make logic AND (&) in order to transform the -63 to 1. Could anyone explain me why a byte is signed in java?
Last edited: