Skip to content

Commit

Permalink
UPDATE: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
T-K-233 committed Jun 15, 2022
1 parent 03a00e3 commit 0c9f301
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,11 @@ while True:
ser.transmit(buffer)

```

Packet receiving timeout, blocking vs non-blocking

```python
buffer = ser.receive(timeout=None) # blocking (default)
buffer = ser.receive(timeout=0) # non-blocking, return b"" if no data
buffer = ser.receive(timeout=1) # timeout for 1 sec, return b"" if no data
```

0 comments on commit 0c9f301

Please sign in to comment.