![]() |
rodbus (C++ API) 1.6.0-RC1
|
Callbacks received when reading holding or input registers. More...
#include <rodbus.hpp>
Public Member Functions | |
| virtual void | on_complete (RegisterValueIterator &result)=0 |
| Invoked when the asynchronous operation completes successfully. More... | |
| virtual void | on_failure (RequestError error)=0 |
| Invoked when the asynchronous operation fails. More... | |
Callbacks received when reading holding or input registers.
On success, the iterator yields exactly the requested number of values in ascending, contiguous address order, beginning at the start of the requested AddressRange. A response containing too few or too many values fails the request.
|
pure virtual |
Invoked when the asynchronous operation completes successfully.
| result | Iterator over the values read from the server, in ascending address order |
|
pure virtual |
Invoked when the asynchronous operation fails.
| error | Enumeration indicating which error occurred |