IoT::Modbus::Device

class AbstractModbusDeviceHandler

File Information

Library: IoT/Modbus/Device
Package: Device
Header: IoT/Modbus/Device/AbstractModbusDeviceHandler.h

Description

This is an implementation of the ModbusDeviceHandler interface, which provides a trivial implementation of every method that simply throws a ModbusException with a MODBUS_EXC_ILLEGAL_FUNCTION exception code.

This class can be used as base class for custom implementations that only implement a limited set of function codes.

Inheritance

Direct Base Classes: ModbusDeviceHandler

All Base Classes: ModbusDeviceHandler

Member Summary

Member Functions: idle, maskWriteRegister, otherFunction, readCoils, readDiscreteInputs, readExceptionStatus, readFIFOQueue, readHoldingRegisters, readInputRegisters, readWriteMultipleRegisters, writeMultipleCoils, writeMultipleRegisters, writeSingleCoil, writeSingleRegister

Inherited Functions: idle, maskWriteRegister, otherFunction, readCoils, readDiscreteInputs, readExceptionStatus, readFIFOQueue, readHoldingRegisters, readInputRegisters, readWriteMultipleRegisters, writeMultipleCoils, writeMultipleRegisters, writeSingleCoil, writeSingleRegister

Member Functions

idle virtual

bool idle(
    Poco::Timespan idleTime
);

maskWriteRegister virtual

void maskWriteRegister(
    const MaskWriteRegisterRequest & request,
    MaskWriteRegisterResponse & response
);

otherFunction virtual

void otherFunction(
    const GenericMessage & request,
    GenericMessage & response
);

readCoils virtual

void readCoils(
    const ReadCoilsRequest & request,
    ReadCoilsResponse & response
);

readDiscreteInputs virtual

void readDiscreteInputs(
    const ReadDiscreteInputsRequest & request,
    ReadDiscreteInputsResponse & response
);

readExceptionStatus virtual

void readExceptionStatus(
    const ReadExceptionStatusRequest & request,
    ReadExceptionStatusResponse & response
);

readFIFOQueue virtual

void readFIFOQueue(
    const ReadFIFOQueueRequest & request,
    ReadFIFOQueueResponse & response
);

readHoldingRegisters virtual

void readHoldingRegisters(
    const ReadHoldingRegistersRequest & request,
    ReadHoldingRegistersResponse & response
);

readInputRegisters virtual

void readInputRegisters(
    const ReadInputRegistersRequest & request,
    ReadInputRegistersResponse & response
);

readWriteMultipleRegisters virtual

void readWriteMultipleRegisters(
    const ReadWriteMultipleRegistersRequest & request,
    ReadWriteMultipleRegistersResponse & response
);

writeMultipleCoils virtual

void writeMultipleCoils(
    const WriteMultipleCoilsRequest & request,
    WriteMultipleCoilsResponse & response
);

writeMultipleRegisters virtual

void writeMultipleRegisters(
    const WriteMultipleRegistersRequest & request,
    WriteMultipleRegistersResponse & response
);

writeSingleCoil virtual

void writeSingleCoil(
    const WriteSingleCoilRequest & request,
    WriteSingleCoilResponse & response
);

writeSingleRegister virtual

void writeSingleRegister(
    const WriteSingleRegisterRequest & request,
    WriteSingleRegisterResponse & response
);

Securely control IoT edge devices from anywhere   Connect a Device