IoT::Modbus

class PDUReader

Library: IoT/Modbus
Package: ModbusMaster
Header: IoT/Modbus/PDUReader.h

Description

The PDUReader class is used to write Modbus PDU data using a Poco::BinaryWriter.

Member Summary

Member Functions: read, readCommon

Constructors

PDUReader

PDUReader(
    Poco::BinaryReader & reader
);

Creates the PDUReader using the given Poco::BinaryReader.

Destructor

~PDUReader

~PDUReader();

Destroys the PDUReader.

Member Functions

read

void read(
    GenericMessage & message
);

read

void read(
    ModbusExceptionMessage & message
);

read

void read(
    ReadCoilsResponse & response
);

read

void read(
    ReadDiscreteInputsResponse & response
);

read

void read(
    ReadHoldingRegistersResponse & response
);

read

void read(
    ReadInputRegistersResponse & response
);

read

void read(
    WriteSingleCoilResponse & response
);

read

void read(
    WriteSingleRegisterResponse & response
);

read

void read(
    ReadExceptionStatusResponse & response
);

read

void read(
    WriteMultipleCoilsResponse & response
);

read

void read(
    WriteMultipleRegistersResponse & response
);

read

void read(
    MaskWriteRegisterResponse & response
);

read

void read(
    ReadWriteMultipleRegistersResponse & response
);

read

void read(
    ReadFIFOQueueResponse & response
);

readCommon protected

void readCommon(
    ModbusMessage & message
);

Securely control IoT edge devices from anywhere   Connect a Device