Reading byte array into float (expanding on SerialCallResponse example)

Either you return the value and assign it to the variable you wanna mutate or… use an object, which can be freely mutated.

For the latter, you can for example pass an int[] array instead of a vanilla int.

P.S.: Almost forgot: Declare a global field, so it can be reassigned everywhere! :globe_with_meridians:

1 Like