I need guidance for a new project that fell on my lap.
I need to stream a float array from processing to AWS and then broadcast it to multiple mobile app clients.
I’m clueless about this. Never been on this side of tech.
From now on you can auto-convert the contents of float[] to byte[] via method FloatBuffer::put(), followed by method rewind().
After that you can transmit the whole byte[] array, which now contains the float representation of the float[] array, using the Serial::write() method.
However, you’re still gonna need to convert the broadcast byte[] back to a float[] array inside your mobile app.