# Serial.read()

**URL:** <https://forum.arduino.cc/t/serial-read/522026>\
**Category:** Networking, Protocols, and Devices\
**Created:** [April 23, 2018, 2:37pm UTC](https://forum.arduino.cc/t/serial-read/522026 "2018-04-23T14:37:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valtro\_98](https://avatars.discourse-cdn.com/v4/letter/v/76d3ee/32.png) [@Valtro\_98](https://forum.arduino.cc/u/Valtro_98)\
**Post date:** [April 23, 2018, 2:37pm UTC](https://forum.arduino.cc/t/serial-read/522026/1 "2018-04-23T14:37:25Z")

</div>

I got a question... I am working with the mit app inventor, and throught the bluetooth module I have managed to received information to my arduino uno, later I want to display that received data to a OLED Display with I2C communication. The app will send 3 different types of data when the button of each data is clicked in the app, therefore, since I want the display to show the data in a certain format, therefore the arduino must recognice the data that is receiving... I am new at this, and I have been working with this for a few days but I havent been able to find a viable solution... If anyone can provide me any reference or alternative to solve this problem I would be really glad.

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [April 23, 2018, 2:50pm UTC](https://forum.arduino.cc/t/serial-read/522026/2 "2018-04-23T14:50:13Z")

</div>

Serial.read() reads one byte each time it is used

There are other Serial functions that read more than one byte.

See [Serial - Arduino Reference](https://www.arduino.cc/reference/en/language/functions/communication/serial/)

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [April 23, 2018, 2:57pm UTC](https://forum.arduino.cc/t/serial-read/522026/3 "2018-04-23T14:57:19Z")

</div>

Have a look at the examples in [Serial Input Basics](http://forum.arduino.cc/index.php?topic=396450.0) - simple reliable ways to receive data.

...R

---

<div class="post-metadata">

**Author:** ![Coding\_Badly](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Coding\_Badly](https://forum.arduino.cc/u/Coding_Badly)\
**Post date:** [April 23, 2018, 5:43pm UTC](https://forum.arduino.cc/t/serial-read/522026/4 "2018-04-23T17:43:17Z")

</div>

@Valtro_98, do not hijack. Post removed.

Do not cross-post. Threads merged.

---

<div class="post-metadata">

**Author:** ![Valtro\_98](https://avatars.discourse-cdn.com/v4/letter/v/76d3ee/32.png) [@Valtro\_98](https://forum.arduino.cc/u/Valtro_98)\
**Post date:** [April 23, 2018, 6:36pm UTC](https://forum.arduino.cc/t/serial-read/522026/5 "2018-04-23T18:36:02Z")

</div>

Hello,

I am new at this, I am trying to get a signal from a connected via-Bluetooth app designed in Mit app inventor, the thing is, I have read about Serial.read() as a function to read on character of the signal at a time, and I need a way so that the Arduino can read a complete set of characters as a whole:

C121214DCJOJOJSC

For example, if I sent the above data from the app, the Arduino just detect and read "121214D" as a String and then "JOJOJS" as another string...

If anybody know something please let me know. Thank you!

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 23, 2018, 6:39pm UTC](https://forum.arduino.cc/t/serial-read/522026/6 "2018-04-23T18:39:39Z")

</div>

[Serial Input Basics - updated - Introductory Tutorials - Arduino Forum](http://forum.arduino.cc/index.php?topic=396450) is a good read.

---

<div class="post-metadata">

**Author:** ![Coding\_Badly](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Coding\_Badly](https://forum.arduino.cc/u/Coding_Badly)\
**Post date:** [April 23, 2018, 7:48pm UTC](https://forum.arduino.cc/t/serial-read/522026/7 "2018-04-23T19:48:38Z")

</div>

Threads merged. Again.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 11:10am UTC](https://forum.arduino.cc/t/serial-read/522026/8 "2021-05-06T11:10:34Z")

</div>


