File Information
Library: IoT/Modbus/Device
Package: Device
Header: IoT/Modbus/Device/ModbusDeviceConnection.h
Description
This is a basic implementation of a Modbus device server that reads incoming messages and dispatches them to a ModbusDeviceHandler instance, then sends back the response.
Inheritance
Direct Base Classes: Poco::Runnable
All Base Classes: Poco::Runnable
Member Summary
Member Functions: processFrame, run, stop, stopped
Inherited Functions: run
Constructors
ModbusDeviceConnection
ModbusDeviceConnection(
Poco::SharedPtr < Port > pPort,
ModbusDeviceHandler & deviceHandler,
Poco::UInt8 slaveOrUnitAddress = 0
);
Creates a ModbusDeviceConnection using the given ModbusDevice.
Destructor
~ModbusDeviceConnection
virtual ~ModbusDeviceConnection();
Member Functions
run
void run();
See also: Poco::Runnable::run()
stop
void stop();
processFrame
void processFrame();
stopped
bool stopped() const;