Thanks for replying.
@bko I don’t understand how unions could help? I use the array of float because ultimately I want to send a Quaternion.
@ScruffR from the error line
test2.cpp:125:37: error: no matching function for call to 'TCPClient::write(float (*)[5], unsigned int)'
^
test2.cpp:125:37: note: candidates are:
In file included from ./inc/application.h:56:0,
from test2.cpp:2:
../wiring/inc/spark_wiring_tcpclient.h:47:17: note: virtual size_t TCPClient::write(uint8_t)
I should have understood unit8_t was the way to go.
is memcpy() a good way to convert floats into unit8_t? I