ObdDetection class final

Result of ObdClient.autoDetect.

final d = await ObdClient.autoDetect(openBus);
if (d != null) print('${d.bitrate.label} ${d.addressing.name} ECUs: ${d.ecus}');
Annotations

Constructors

ObdDetection({required CanBitrate bitrate, required ObdAddressing addressing, required CanBus bus, required Set<int> ecus})
Creates a detection result.
const

Properties

addressing → ObdAddressing
Addressing the vehicle answered with.
final
bitrate → CanBitrate
Bitrate the vehicle answered on.
final
bus → CanBus
The open bus (normal mode) at bitrate. The caller owns it and must close it.
final
ecus → Set<int>
Responding CAN IDs.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited