• Create a CAN-TP connection and return an opaque handle string.

    Parameters

    • addr: CanAddr

      Full addressing configuration (TX/RX IDs, format, timing, etc.)

    • Optionaldevice: string

      Optional device name (channel name as configured in the project). When omitted the first CAN channel attached to this node is used.

    Returns Promise<string>

    Opaque handle string to pass to the other CanTp* functions.

    If no suitable CAN device is found, or if the connection cannot be opened.

    const handle = await CanTpCreateConnection(addr, 'CAN1')