pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function readHoldingRegistersReply

    • Builds the reply a device sends to a read-holding-registers request.

      This is the answering half of readHoldingRegisters, so a client can be written and tested against what a device sends without a device on the line.

      Parameters

      • address: number

        The unit address the reply comes from.

      • values: number[]

        The register values the device reports, in address order.

      Returns Buffer

      The frame the device would send.

      If there are no values, or more than one frame can carry.