# Trying to make 2 strings out of one Serial transmission

**URL:** <https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [April 16, 2020, 2:04am UTC](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819 "2020-04-16T02:04:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [April 16, 2020, 8:47am UTC](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819/2 "2020-04-16T08:47:37Z")

</div>

Hello,

Check for a null character.  
You can initialize strings also; be sure to test code as well for valid data. Prefix each with a character.  
See example below.

> **[null / Reference](https://processing.org/reference/null.html)**
>
> Special value used to signify the target is not a valid data element. In Processing, you may run across the keyword null when trying to access data which is not there.

> **[readStringUntil() / Libraries](https://processing.org/reference/libraries/serial/Serial_readStringUntil_.html)**
>
> Combination of readBytesUntil() and readString(). Returns null if it doesn't find what you're looking for.

[String Initialization in Java](https://www.baeldung.com/java-string-initialization)

I also have an example here that may be of interest:

> [@Problem with the use of several sensors, Arduino / Processing](https://discourse.processing.org/t/problem-with-the-use-of-several-sensors-arduino-processing/18118/4):
>
> Hello, thank you very much for your response but I already have my graphic interface developed, how could I implement the multiwii protocol in the interface that I already have developed in Processing?

`:)`

---

_[View the full topic](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819)._
