rodbus (C++ API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus::BitReadCallback Class Referenceabstract

Callbacks received when reading coils or discrete inputs. More...

#include <rodbus.hpp>

Public Member Functions

virtual void on_complete (BitValueIterator &result)=0
 Invoked when the asynchronous operation completes successfully. More...
 
virtual void on_failure (RequestError error)=0
 Invoked when the asynchronous operation fails. More...
 

Detailed Description

Callbacks received when reading coils or discrete inputs.

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.

Note
this class is an "interface" and only has virtual methods, some of which may have default implementations.

Member Function Documentation

◆ on_complete()

virtual void rodbus::BitReadCallback::on_complete ( BitValueIterator &  result)
pure virtual

Invoked when the asynchronous operation completes successfully.

Parameters
resultIterator over the values read from the server, in ascending address order

◆ on_failure()

virtual void rodbus::BitReadCallback::on_failure ( RequestError  error)
pure virtual

Invoked when the asynchronous operation fails.

Parameters
errorEnumeration indicating which error occurred

The documentation for this class was generated from the following file: