about udp.write()

Hi all,
how to send int and float values using UDP.write() method.thanks in advance

how to send int and float values using UDP.write() method.

One byte at a time.

For ints, the highByte() and lowByte() functions can be useful.

For floats, a union is the easiest.

union
{
   byte b[4];
   float f;
} stuff;

stuff.f = yourFloat;

and write stuff.b.