• Send UNLOCK with the computed key to unlock a protected slave resource.

    Parameters

    • handle: string

      Connection handle returned by XcpCreateConnection.

    • length: number

      Remaining key length in bytes (including the bytes in this packet).

    • key: XcpByteInput

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

    Returns Promise<ResourceFlags>

    Updated ResourceFlags showing which resources remain protected.

    If the handle is unknown, the slave replies with ERR, or the request times out.