Maps endpoint handlers to Modbus address.
More...
#include <rodbus.hpp>
Maps endpoint handlers to Modbus address.
◆ DeviceMap() [1/2]
rodbus::DeviceMap::DeviceMap |
( |
DeviceMap && |
other | ) |
|
|
inlinenoexcept |
Transfer ownership of the underlying C-type to this instance and invalidate the other instance.
- Note
- the moved class will now throw an exception if any method is called
- Parameters
-
other | Class from which ownership will be transfer to this instance |
◆ DeviceMap() [2/2]
rodbus::DeviceMap::DeviceMap |
( |
| ) |
|
Create a device map that will be used to bind devices to a server endpoint.
◆ ~DeviceMap()
rodbus::DeviceMap::~DeviceMap |
( |
| ) |
|
Destroy a previously created device map.
◆ add_endpoint()
Add an endpoint to the map.
- Parameters
-
unit_id | Unit id of the endpoint |
handler | Callback interface for handling write operations for this device |
configure | One-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: