elm327
Version:
Node.js/TypeScript library for ELM327 OBD2 adapters over USB, Bluetooth and WiFi
29 lines • 951 B
TypeScript
import { OBD2Connection } from './connection';
import { ConnectionConfig } from './types';
/**
* Serial (USB/RS232) connection to an ELM327 adapter.
* The most reliable connection method for OBD2 communication.
*
* Updated to use ResponseMatcher for better request/response matching.
*/
export declare class SerialConnection extends OBD2Connection {
private port?;
protected buffer: string;
private lineEnding;
constructor(config: ConnectionConfig);
connect(): Promise<void>;
disconnect(): Promise<void>;
sendRaw(data: string): Promise<void>;
isConnectionOpen(): boolean;
private setupEventHandlers;
protected clearBuffer(): void;
/**
* Lists all available serial ports on the system.
*/
static listPorts(): Promise<Array<{
path: string;
manufacturer: string | undefined;
serialNumber: string | undefined;
}>>;
}
//# sourceMappingURL=serial-connection.d.ts.map