Android Question Bytes to Ints - Casting error

saunwin

Active Member
Licensed User
Longtime User
Good evening Guru's,

I have a problem, hope you can help.
I'm receiving bytes (BTooth) nicely, BUT I'm doing some intensive bit manipulation.
Bytes are -128 to +128 and I need 0-255
I thought byteconverter library did it, but alas a cast error is cropping up here.
Please steer me straight someone - TIA.


B4X:
Dim I As Int = bc.hexFromBytes(Buffer(0))
 
Top