• Send DOWNLOAD to write data to the slave starting at the current MTA.

    Parameters

    • handle: string

      Connection handle returned by XcpCreateConnection.

    • data: XcpByteInput

      Payload bytes to write (number[], Uint8Array, or Buffer). Length must be a multiple of address granularity and fit in MAX_CTO.

    Returns Promise<number[]>

    Raw positive response payload bytes.

    If data exceeds MAX_CTO or violates alignment, the slave replies with ERR, or the request times out.