Reading byte array into float (expanding on SerialCallResponse example)

Agreed, but I see no mechanism to force that. I’ll need to build your code in a call-response structure. As I said, I’m not very fluent with the “object.method(parameter/arg)” structure of Java, and the more dots there are the more difficult it is for me to decode. I can’t yet get my head around

FloatBuffer buf = ByteBuffer.wrap(bytes).asFloatBuffer();

or

  buf.get(floats).rewind();

for example; I’m accustomed to the “verb(parameter/arg)” of traditional procedural programming. More than one dot confuses me !!

1 Like