# \#non-blocking

**URL:** https://forums.digi.com/tag/non-blocking/2889.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [Test for UART data,  XBEE3 and Micropython (kbhit)](https://forums.digi.com/t/test-for-uart-data-xbee3-and-micropython-kbhit/20989)

<div class="topic-metadata">

**Author:** [@aadgi](https://forums.digi.com/u/aadgi)\
**Replies:** 2\
**Last updated:** [December 23, 2019, 10:24am UTC](https://forums.digi.com/t/test-for-uart-data-xbee3-and-micropython-kbhit/20989 "2019-12-23T10:24:09Z")

</div>

Is it possible to test for data available from the UART? This commonly implemented with kbhit(), or nonblocking, modes. I can wait for one character with this: \> key = stdin.buffer.read(1) This doesn’t return until …

---

## [SOLVED: read from stdin non-block](https://forums.digi.com/t/solved-read-from-stdin-non-block/16850)

<div class="topic-metadata">

**Author:** [@Martin.work](https://forums.digi.com/u/Martin.work)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 8:06am UTC](https://forums.digi.com/t/solved-read-from-stdin-non-block/16850 "2016-06-01T08:06:53Z")

</div>

Hello, I’m not able to read from stdin non-blocking. If I use: length = fread(buffer, 1, 10, stdin); My code hangs until buffer is full. If I use: serEopen(115200); serEdatabits(PARAM\_8BIT); serEparity(PARAM\_NOPA…
