Skip to content
  • 0 Votes
    3 Posts
    757 Views
    BeaverShallBurnB

    Hi, @J-Hilk!

    Looks like i found desired method in QModbusDataUnit class docs. Don't know how i missed it being mentioned in List of All Members for QModbusRtuSerialMaster. I guess digging into Qt docs about Modbus was a proper way to solve this :)

    QModbusDataUnit::QModbusDataUnit(QModbusDataUnit::RegisterType type, int address, const QVector<quint16> &data)

    In my case this will be:

    QModbusDataUnit input(QModbusDataUnit::InputRegisters, 3001, data);

    Thanks for joining my journey!