How OBDService, OBDServiceDelegate, and OBDCommand work together
mainSwiftOBD2 is built around three core abstractions:
OBDService: The central engine of the package. It manages the connection lifecycle (Bluetooth or Wi-Fi), handles adapter initialization, and processes vehicle data.OBDServiceDelegate: A protocol used to receive lifecycle events and updates regarding the connection state (e.g., transitioning fromdisconnectedtoconnectedToAdapterorconnectedToVehicle).OBDCommand: Represents specific requests sent to the vehicle's ECU (Engine Control Unit). These commands (like.mode1(.rpm)) are used to request specific Parameter IDs (PIDs).