# OpenUART read

**URL:** <https://forum.sierrawireless.com/t/openuart-read/5470>\
**Category:** Open AT\
**Created:** [February 17, 2012, 8:48am UTC](https://forum.sierrawireless.com/t/openuart-read/5470 "2012-02-17T08:48:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [February 24, 2012, 8:13pm UTC](https://forum.sierrawireless.com/t/openuart-read/5470/4 "2012-02-24T20:13:35Z")

</div>

> [@Leonalem](#):
>
> what sign the package is precisely accepted!

Use a State Machine: [Good paper on Event-Driven Programming - #6 by awneil](https://forum.sierrawireless.com/t/good-paper-on-event-driven-programming/3848/6)

> [@](#):
>
> In particular, note that this illustrates how to accept data in arbitrary “chunks” that do not necessarily correspond to complete “messages”

You certainly do not want a while(1) loop ❗😮

---

_[View the full topic](https://forum.sierrawireless.com/t/openuart-read/5470)._
