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

Callbacks received when reading holding or input registers More...

Inherited by rodbus.RegisterReadCallback.

Public Member Functions

void OnComplete (System.Collections.Generic.ICollection< RegisterValue > 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 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.

Member Function Documentation

◆ OnComplete()

void rodbus.IRegisterReadCallback.OnComplete ( System.Collections.Generic.ICollection< RegisterValue >  result)

Invoked when the asynchronous operation completes successfully

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

◆ OnFailure()

void rodbus.IRegisterReadCallback.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: