- Phase 1 core protocol: temp_table, neg8, sensor_state, s300_parser, kpro_parser, dtc_map, sensor_defs (50/50 tests passing) - BT layer: bt_service.dart, bt_poller.dart (100ms poll, NEG8 validation) - Connection test UI: device picker, protocol selector, live sensor screen with LIVE DATA + DEBUG LOG tabs - Runtime BT permission request (Android 12+) + auto-enable Bluetooth - Android: minSdk=26, all BT+location permissions in manifest - Fixed flutter_bluetooth_serial namespace for AGP compatibility
17 lines
364 B
Dart
17 lines
364 B
Dart
/// Definition of a single sensor — used for bar gauges, pickers, and graph panels.
|
|
class SensorDef {
|
|
final String id;
|
|
final String displayName;
|
|
final String unit;
|
|
final double min;
|
|
final double max;
|
|
|
|
const SensorDef({
|
|
required this.id,
|
|
required this.displayName,
|
|
required this.unit,
|
|
required this.min,
|
|
required this.max,
|
|
});
|
|
}
|