IoT::Modbus::Device

template < class Port >

class ModbusDeviceConnection

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 inline

ModbusDeviceConnection(
    Poco::SharedPtr < Port > pPort,
    ModbusDeviceHandler & deviceHandler,
    Poco::UInt8 slaveOrUnitAddress = 0
);

Creates a ModbusDeviceConnection using the given ModbusDevice.

Destructor

~ModbusDeviceConnection virtual inline

virtual ~ModbusDeviceConnection();

Member Functions

run virtual inline

void run();

stop inline

void stop();

processFrame protected inline

void processFrame();

stopped protected inline

bool stopped() const;

Securely control IoT edge devices from anywhere   Connect a Device