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
bool idle(
Poco::Timespan idleTime
);
maskWriteRegister
void maskWriteRegister(
const MaskWriteRegisterRequest & request,
MaskWriteRegisterResponse & response
);
otherFunction
void otherFunction(
const GenericMessage & request,
GenericMessage & response
);
readCoils
void readCoils(
const ReadCoilsRequest & request,
ReadCoilsResponse & response
);
readDiscreteInputs
void readDiscreteInputs(
const ReadDiscreteInputsRequest & request,
ReadDiscreteInputsResponse & response
);
readExceptionStatus
void readExceptionStatus(
const ReadExceptionStatusRequest & request,
ReadExceptionStatusResponse & response
);
readFIFOQueue
void readFIFOQueue(
const ReadFIFOQueueRequest & request,
ReadFIFOQueueResponse & response
);
readHoldingRegisters
void readHoldingRegisters(
const ReadHoldingRegistersRequest & request,
ReadHoldingRegistersResponse & response
);
readInputRegisters
void readInputRegisters(
const ReadInputRegistersRequest & request,
ReadInputRegistersResponse & response
);
readWriteMultipleRegisters
void readWriteMultipleRegisters(
const ReadWriteMultipleRegistersRequest & request,
ReadWriteMultipleRegistersResponse & response
);
writeMultipleCoils
void writeMultipleCoils(
const WriteMultipleCoilsRequest & request,
WriteMultipleCoilsResponse & response
);
writeMultipleRegisters
void writeMultipleRegisters(
const WriteMultipleRegistersRequest & request,
WriteMultipleRegistersResponse & response
);
writeSingleCoil
void writeSingleCoil(
const WriteSingleCoilRequest & request,
WriteSingleCoilResponse & response
);
writeSingleRegister
void writeSingleRegister(
const WriteSingleRegisterRequest & request,
WriteSingleRegisterResponse & response
);