• Send PROGRAM_NEXT to continue a master block-mode programming 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.

    Intermediate packets (remainingBlockLength > elements in data) are transmitted without waiting for a response and return an empty array; the final packet waits for the slave RES.

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