rodbus (.NET API) 1.3.1
Loading...
Searching...
No Matches
rodbus.DeviceMap Class Reference

Maps endpoint handlers to Modbus address More...

Public Member Functions

 DeviceMap ()
 Create a device map that will be used to bind devices to a server endpoint More...
 
bool AddEndpoint (byte unitId, IWriteHandler handler, Action< Database > configure)
 Add an endpoint to the map More...
 

Detailed Description

Maps endpoint handlers to Modbus address

Constructor & Destructor Documentation

◆ DeviceMap()

rodbus.DeviceMap.DeviceMap ( )
inline

Create a device map that will be used to bind devices to a server endpoint

Member Function Documentation

◆ AddEndpoint()

bool rodbus.DeviceMap.AddEndpoint ( byte  unitId,
IWriteHandler  handler,
Action< Database configure 
)
inline

Add an endpoint to the map

Parameters
unitIdUnit id of the endpoint
handlerCallback interface for handling write operations for this device
configureOne-time callback interface configuring the initial state of the database
Returns
True if the unit id doesn't already exists, false otherwise

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