How to send uint16 (2 byte variable) in rl-arm tcpip tcp_send (socket_tcp, sendbuf, 2) I have error with U16 *sendbuf
The buffers don't care what you send. But you have to memcpy() or manually place your bytes in the order you want them sent.
And remember to define a byte order so client and server will always be able to understand each other.