Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libISOBlue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ try {
The library can also create so called "buffered" sockets.
They work the same as the non "buffered" ones,
but reading from them returns messages which ISOBlue has buffered
instead of what is currently going accross the ISOBUS.
instead of what is currently going across the ISOBUS.

The creation of "buffred" sockets is slightly different.
You need the identifier from a messge object to give to ISOBlue.
The creation of "buffered" sockets is slightly different.
You need the identifier from a message object to give to ISOBlue.
This tells it to send you all messages which came after the one the identifier
was from.
```Java
// Get identifier of the message after which the buffered messages should start
// If you just want all buffered messages, set this to zero
Serializable messageId = message.getId();

// Retrieve a pair of "buffered" scokets, one for each bus
// Retrieve a pair of "buffered" sockets, one for each bus
ISOBUSSocket[] bufSockets = idb.createBufferedISOBUSSockets(messageId);

// Place the sockets into separate variables (for convenience)
Expand Down