• Send DOWNLOAD_NEXT as part of a master block-mode download sequence.

    Parameters

    • handle: string

      Connection handle returned by XcpCreateConnection.

    • remainingBlockLength: number

      Total elements remaining in the block, including this packet.

    • data: XcpByteInput

      Payload bytes for this packet (number[], Uint8Array, or Buffer).

    Returns Promise<number[]>

    Empty array for intermediate packets, or raw positive response payload bytes for the final packet.

    For intermediate packets (remainingBlockLength > elements in data), no slave response is expected and an empty array is returned immediately. For the final packet of the block, the slave RES payload is returned.

    If data or remainingBlockLength is invalid, MAX_BS is exceeded, the slave replies with ERR, or the request times out.