# UART le\_tty read and write sample code

**URL:** <https://forum.legato.io/t/uart-le-tty-read-and-write-sample-code/6154>\
**Category:** Uncategorized\
**Created:** [March 24, 2022, 2:38am UTC](https://forum.legato.io/t/uart-le-tty-read-and-write-sample-code/6154 "2022-03-24T02:38:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanaporn\_y](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tanaporn\_y](https://forum.legato.io/u/tanaporn_y)\
**Post date:** [March 24, 2022, 2:38am UTC](https://forum.legato.io/t/uart-le-tty-read-and-write-sample-code/6154/1 "2022-03-24T02:38:14Z")

</div>

I want to read and write the UART by using le\_tty.h  
Does anyone have the sample code about it? If yes, please post it below

Thank you.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 24, 2022, 2:40am UTC](https://forum.legato.io/t/uart-le-tty-read-and-write-sample-code/6154/2 "2022-03-24T02:40:31Z")

</div>

you can see here:

> <https://github.com/legatoproject/legato-af/blob/master/apps/test/atServices/atServerIntegrationTest/atServerTestComp/atServerTest.c>
