IoT::Modbus

class PDUWriter

File Information

Library: IoT/Modbus
Package: ModbusCore
Header: IoT/Modbus/PDUWriter.h

Description

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

Member Summary

Member Functions: write, writeCommon

Constructors

PDUWriter

PDUWriter(
    Poco::BinaryWriter & writer
);

Creates the PDUWriter using the given Poco::BinaryWriter.

Destructor

~PDUWriter

~PDUWriter();

Destroys the PDUWriter.

Member Functions

write

void write(
    const GenericMessage & message
);

write

void write(
    const ReadCoilsRequest & request
);

write

void write(
    const ReadDiscreteInputsRequest & request
);

write

void write(
    const ReadHoldingRegistersRequest & request
);

write

void write(
    const ReadInputRegistersRequest & request
);

write

void write(
    const WriteSingleCoilRequest & request
);

write

void write(
    const WriteSingleRegisterRequest & request
);

write

void write(
    const ReadExceptionStatusRequest & request
);

write

void write(
    const WriteMultipleCoilsRequest & request
);

write

void write(
    const WriteMultipleRegistersRequest & request
);

write

void write(
    const MaskWriteRegisterRequest & request
);

write

void write(
    const ReadWriteMultipleRegistersRequest & request
);

write

void write(
    const ReadFIFOQueueRequest & request
);

write

void write(
    const ModbusExceptionMessage & message
);

write

void write(
    const ReadCoilsResponse & response
);

write

void write(
    const ReadDiscreteInputsResponse & response
);

write

void write(
    const ReadHoldingRegistersResponse & response
);

write

void write(
    const ReadInputRegistersResponse & response
);

write

void write(
    const WriteSingleCoilResponse & response
);

write

void write(
    const WriteSingleRegisterResponse & response
);

write

void write(
    const ReadExceptionStatusResponse & response
);

write

void write(
    const WriteMultipleCoilsResponse & response
);

write

void write(
    const WriteMultipleRegistersResponse & response
);

write

void write(
    const MaskWriteRegisterResponse & response
);

write

void write(
    const ReadWriteMultipleRegistersResponse & response
);

write

void write(
    const ReadFIFOQueueResponse & response
);

writeCommon protected

void writeCommon(
    const ModbusMessage & message
);

Securely control IoT edge devices from anywhere   Connect a Device