Skip to content

Commit

Permalink
Add notes aboute using multiple streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakercp committed Nov 9, 2017
1 parent 4c1506e commit 8be082e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ mySoftwareSerial.begin(38400);
myPacketSerial.begin(&mySoftwareSerial);
```
On boards with multiple serial ports, this strategy can also be used to set up two Serial streams, one for packets and one for debug ASCII (see [this discussion](https://github.com/bakercp/PacketSerial/issues/10) for more).
To receive decoded packets, the user should register a packet callback. The packet callback should be placed in your main Arduino Sketch and should have a method that looks like this:
```c++
Expand Down

0 comments on commit 8be082e

Please sign in to comment.