Hi all there! Can you help me please understand how i can send the hex data pattern to remote device ip ike 10.0.255.182 and port 8234?
i try use that code
You can use the Java ByteBuffer class to convert any primitive type to an array of bytes, then send it over the network. You can also use ByteBuffer to convert an array of bytes to any primitive. Another thing to note is that the ByteBuffer has as option for byte order, which allows you to change the endianness of the stored data. Depending on the device that is receiving the data, you may need to change that option to something specific, rather than the default.