elm327
Version:
Node.js/TypeScript library for ELM327 OBD2 adapters over USB, Bluetooth and WiFi
20 lines • 712 B
TypeScript
import { OBD2Command } from './types';
/**
* All predefined OBD2 commands with their PIDs and decoder functions.
*/
export declare const OBD2_COMMANDS: Record<string, OBD2Command>;
/**
* Looks up an OBD2 command by its PID string.
*/
export declare function getCommandByPid(pid: string): OBD2Command | undefined;
/**
* Returns all predefined OBD2 commands.
* Returns copies to prevent accidental mutation.
*/
export declare function getAllCommands(): OBD2Command[];
/**
* Returns commands filtered by category (MODE_01 or MODE_09).
* Returns copies to prevent accidental mutation.
*/
export declare function getCommandsByCategory(category: string): OBD2Command[];
//# sourceMappingURL=commands.d.ts.map