IoT::Modbus

struct ModbusMessage

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

Inheritance

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

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