IoT::Modbus

struct ModbusMessage

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

Inheritance

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

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