chameleon-ultra.js - v0.4.6
    Preparing search index...

    Implements

    • __type
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    duplex: SerialPort<any> | null = null
    name: string = 'adapter'
    portInfo:
        | {
            locationId: string
            | undefined;
            manufacturer: string | undefined;
            path: string;
            pnpId: string | undefined;
            productId: string | undefined;
            serialNumber: string | undefined;
            vendorId: string | undefined;
        }
        | null = null

    Methods

    • Parameters

      • context: { Buffer: typeof Buffer; ultra: ChameleonUltra } & {
            ultra: ChameleonUltra & { $adapter?: any };
        }
      • pluginOption: {
            baudRate?: number;
            devicePicker?: (
                portInfos: {
                    locationId: string | undefined;
                    manufacturer: string | undefined;
                    path: string;
                    pnpId: string | undefined;
                    productId: string | undefined;
                    serialNumber: string | undefined;
                    vendorId: string | undefined;
                }[],
            ) => Promise<
                | {
                    locationId: string
                    | undefined;
                    manufacturer: string | undefined;
                    path: string;
                    pnpId: string | undefined;
                    productId: string | undefined;
                    serialNumber: string | undefined;
                    vendorId: string | undefined;
                }
                | undefined,
            >;
            path?: string;
        } = {}

      Returns Promise<{ isSupported: () => boolean }>