Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QModbusPdu

Using QModbusPdu

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 426 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Penta
    wrote on last edited by
    #1

    Hello,
    I have a QByteArray with a pdu struct (i.e. function code and needed data). I can create a QModbusPdu instance with this data but always isValid=true... I have used QModbusRequest but has the same behaviour.

    Is there any way to check if in QByteArray are a valid modbus command? My way is using QModbusPdu::decodeData and check if there are expected fields according to the function code. But, is there other way using Qt modbus classes?

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved