Skip to content

Commit

Permalink
Add clearQueue() description
Browse files Browse the repository at this point in the history
  • Loading branch information
Miq1 authored Jan 26, 2024
1 parent bc25d71 commit 63fa8ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _docs/modbusclient/commonapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ Each error response received will be counted. The `getErrorCount()` method will
## `void resetCounts()`
The internal counters for both messages and errors can be set to zero using this call.
## `void clearQueue()`
This method will immediately remove all pending requests from the queue - in case of an emergency or if a general cleanup is desired.
If requests have been sent already, the responses to those will be dropped (with a warning log message).
## Setting up requests
### Asynchronous requests (non-blocking)
Expand Down

0 comments on commit 63fa8ca

Please sign in to comment.