IoT::Modbus

struct ModbusMessage

File Information

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

Inheritance

Known Derived Classes: GenericMessage, ModbusExceptionMessage, ReadCoilsRequest, ReadCoilsResponse, ReadDiscreteInputsRequest, ReadDiscreteInputsResponse, ReadHoldingRegistersRequest, ReadHoldingRegistersResponse, ReadInputRegistersRequest, ReadInputRegistersResponse, WriteSingleCoilRequest, WriteSingleCoilResponse, WriteSingleRegisterRequest, WriteSingleRegisterResponse, ReadExceptionStatusRequest, ReadExceptionStatusResponse, WriteMultipleCoilsRequest, WriteMultipleCoilsResponse, WriteMultipleRegistersRequest, WriteMultipleRegistersResponse, MaskWriteRegisterRequest, MaskWriteRegisterResponse, ReadWriteMultipleRegistersRequest, ReadWriteMultipleRegistersResponse, ReadFIFOQueueRequest, ReadFIFOQueueResponse

Constructors

ModbusMessage inline

ModbusMessage();

ModbusMessage inline

ModbusMessage(
    Poco::UInt8 fc
);

ModbusMessage inline

ModbusMessage(
    Poco::UInt16 xid,
    Poco::UInt8 fc
);

Variables

functionCode

Poco::UInt8 functionCode;

Modbus Function Code: 0x00 to 0x7F (see FunctionCodes).

slaveOrUnitAddress

Poco::UInt8 slaveOrUnitAddress;

Slave or unit address/ID.

transactionID

mutable Poco::UInt16 transactionID;

Transaction identifier for Modbus TCP.

Securely control IoT edge devices from anywhere   Connect a Device