# \[SOLVED\] serial port write with no delay between bytes when sending hex values

**URL:** <https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [September 21, 2018, 2:32pm UTC](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712 "2018-09-21T14:32:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 21, 2018, 2:40pm UTC](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712/2 "2018-09-21T14:40:42Z")

</div>

Change _collect_’s datatype to `byte[]`, and pass it as Serial::**write()**'s argument.

> **[write() / Libraries](https://processing.org/reference/libraries/serial/Serial_write_.html)**
>
> Writes bytes, chars, ints, bytes\[\], Strings to the serial port

> [@Udp problem sending byte (-127)](https://discourse.processing.org/t/udp-problem-sending-byte-127/3545/2):
>
> Can’t you simply send() the byte[] array instead of a String? thinking udp.send(mist, ip, port); [UBAA.net/shared/processing/udp/udp\_method\_send.htm](http://UBAA.net/shared/processing/udp/udp_method_send.htm)

---

_[View the full topic](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712)._
