rodbus (.NET API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus.IBitReadCallback Interface Reference

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

Inherited by rodbus.BitReadCallback.

Public Member Functions

void OnComplete (System.Collections.Generic.ICollection< BitValue > result)
 Invoked when the asynchronous operation completes successfully More...
 
void OnFailure (RequestError error)
 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.

Member Function Documentation

◆ OnComplete()

void rodbus.IBitReadCallback.OnComplete ( System.Collections.Generic.ICollection< BitValue >  result)

Invoked when the asynchronous operation completes successfully

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

◆ OnFailure()

void rodbus.IBitReadCallback.OnFailure ( RequestError  error)

Invoked when the asynchronous operation fails

Parameters
errorEnumeration indicating which error occurred

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