IoT::Modbus

class PDUWriter

Library: IoT/Modbus
Package: ModbusMaster
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
);

writeCommon protected

void writeCommon(
    const ModbusMessage & message
);

Securely control IoT edge devices from anywhere   Connect a Device