How to receive signed bluetooth bytes into hex value?

Hey Team!
From my BLE device, I'm getting 7 bytes of hex data.
However, as the bytes entered my app, they were transformed into signed decimal values.

I require the byte value in hexadecimal form.

Could anyone shed some light?

Signed decimal numbers are inconvenient. Ask for Unsigned Bytes instead.

There is a math block to convert a decimal number into a hex string of two characters.
Loop through the 7 items on the incoming list, and build a new string by JOINING those hex strings to it.

That should give you a 14 character hex string.

Here are some draggable procedures and a test capture:



bytes_to_hex_test_Capture

1 Like