|
@@ -25,6 +25,8 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
Future<void> Function(Duration)? firmwareDelay,
|
|
Future<void> Function(Duration)? firmwareDelay,
|
|
|
this.savePreference,
|
|
this.savePreference,
|
|
|
this.freshnessTimeout = const Duration(seconds: 3),
|
|
this.freshnessTimeout = const Duration(seconds: 3),
|
|
|
|
|
+ this.settingsReplyTimeout = const Duration(seconds: 3),
|
|
|
|
|
+ this.clockSyncInterval = const Duration(hours: 1),
|
|
|
}) : _classicTransport = classicTransport ?? ClassicBluetoothTransport(),
|
|
}) : _classicTransport = classicTransport ?? ClassicBluetoothTransport(),
|
|
|
_firmwareDelay = firmwareDelay ?? Future<void>.delayed,
|
|
_firmwareDelay = firmwareDelay ?? Future<void>.delayed,
|
|
|
super(MachineState()) {
|
|
super(MachineState()) {
|
|
@@ -32,6 +34,12 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
final Duration freshnessTimeout;
|
|
final Duration freshnessTimeout;
|
|
|
|
|
+
|
|
|
|
|
+ /// How long a `cmd set` may wait for its `cmd set s_<key> …` confirmation.
|
|
|
|
|
+ final Duration settingsReplyTimeout;
|
|
|
|
|
+
|
|
|
|
|
+ /// Periodic `cmd clock set` while connected (drift, DST, controller resets).
|
|
|
|
|
+ final Duration clockSyncInterval;
|
|
|
final ClassicBluetoothTransport _classicTransport;
|
|
final ClassicBluetoothTransport _classicTransport;
|
|
|
final Future<void> Function(Duration) _firmwareDelay;
|
|
final Future<void> Function(Duration) _firmwareDelay;
|
|
|
final Future<bool> Function(String, Object)? savePreference;
|
|
final Future<bool> Function(String, Object)? savePreference;
|
|
@@ -43,7 +51,12 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
StreamController<List<int>>? _firmwareBytes;
|
|
StreamController<List<int>>? _firmwareBytes;
|
|
|
bool _firmwareMode = false;
|
|
bool _firmwareMode = false;
|
|
|
bool _settingsLocked = false;
|
|
bool _settingsLocked = false;
|
|
|
- DateTime? _lastPidAt;
|
|
|
|
|
|
|
+ // True after a heater-off frame (`pid 0 0 0 0`) on live telemetry and until
|
|
|
|
|
+ // the next non-zero PID frame: the controller is switched off or asleep.
|
|
|
|
|
+ bool _heaterOffConfirmed = false;
|
|
|
|
|
+ ({String key, Completer<String?> reply})? _pendingSetEcho;
|
|
|
|
|
+ Timer? _clockTimer;
|
|
|
|
|
+ bool _reinitializing = false;
|
|
|
final _reportedSettings = <String>{};
|
|
final _reportedSettings = <String>{};
|
|
|
final _pendingFirmwareSettings = <String, String>{};
|
|
final _pendingFirmwareSettings = <String, String>{};
|
|
|
static const _firmwareScaledKeys = {
|
|
static const _firmwareScaledKeys = {
|
|
@@ -78,8 +91,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
!state.isBrewing &&
|
|
!state.isBrewing &&
|
|
|
!state.isHeating &&
|
|
!state.isHeating &&
|
|
|
!state.isSteaming &&
|
|
!state.isSteaming &&
|
|
|
- _lastPidAt != null &&
|
|
|
|
|
- DateTime.now().difference(_lastPidAt!) < freshnessTimeout &&
|
|
|
|
|
|
|
+ _heaterOffConfirmed &&
|
|
|
!state.telemetryStale &&
|
|
!state.telemetryStale &&
|
|
|
state.temperature <= 50 &&
|
|
state.temperature <= 50 &&
|
|
|
supportsBundledFirmware(
|
|
supportsBundledFirmware(
|
|
@@ -155,7 +167,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
_freshnessTimer = Timer(freshnessTimeout, () {
|
|
_freshnessTimer = Timer(freshnessTimeout, () {
|
|
|
if (!mounted || generation != _connectionGeneration) return;
|
|
if (!mounted || generation != _connectionGeneration) return;
|
|
|
_stopShotTimer();
|
|
_stopShotTimer();
|
|
|
- _lastPidAt = null;
|
|
|
|
|
|
|
+ _heaterOffConfirmed = false;
|
|
|
state = state.copyWith(
|
|
state = state.copyWith(
|
|
|
telemetryStale: true,
|
|
telemetryStale: true,
|
|
|
isHeating: false,
|
|
isHeating: false,
|
|
@@ -270,6 +282,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
_commandReady = true;
|
|
_commandReady = true;
|
|
|
state = state.copyWith(connectionStatus: 'Connected');
|
|
state = state.copyWith(connectionStatus: 'Connected');
|
|
|
_watchFreshness();
|
|
_watchFreshness();
|
|
|
|
|
+ _startClockSync();
|
|
|
_log(DiagnosticDirection.event, 'Connected via Bluetooth Classic');
|
|
_log(DiagnosticDirection.event, 'Connected via Bluetooth Classic');
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
if (mounted && generation == _connectionGeneration) {
|
|
if (mounted && generation == _connectionGeneration) {
|
|
@@ -288,8 +301,9 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
)
|
|
)
|
|
|
? 'The bundled V10 firmware only supports "pcb V9" controllers; '
|
|
? 'The bundled V10 firmware only supports "pcb V9" controllers; '
|
|
|
'this controller reports "${state.firmwareVersion}".'
|
|
'this controller reports "${state.firmwareVersion}".'
|
|
|
- : 'Firmware updates require a live Bluetooth Classic connection to '
|
|
|
|
|
- 'meCoffee, an idle machine with heating off, and a boiler at or below 50 C.',
|
|
|
|
|
|
|
+ : 'Firmware updates require a live Bluetooth Classic connection, '
|
|
|
|
|
+ 'the machine switched off at its power switch (heating off), '
|
|
|
|
|
+ 'and a boiler at or below 50 C.',
|
|
|
);
|
|
);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -492,6 +506,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
valveClosedWhilePaused: prefs.getBool('valveClosedWhilePaused') ?? false,
|
|
valveClosedWhilePaused: prefs.getBool('valveClosedWhilePaused') ?? false,
|
|
|
proActivePercentage: prefs.getInt('proActivePercentage') ?? 33,
|
|
proActivePercentage: prefs.getInt('proActivePercentage') ?? 33,
|
|
|
autoShutoffMinutes: prefs.getInt('autoShutoffMinutes') ?? 60,
|
|
autoShutoffMinutes: prefs.getInt('autoShutoffMinutes') ?? 60,
|
|
|
|
|
+ autoShutoffEnabled: prefs.getBool('autoShutoffEnabled') ?? false,
|
|
|
wakeupEnabled: prefs.getBool('wakeupEnabled') ?? false,
|
|
wakeupEnabled: prefs.getBool('wakeupEnabled') ?? false,
|
|
|
wakeupTime: prefs.getString('wakeupTime') ?? "07:00",
|
|
wakeupTime: prefs.getString('wakeupTime') ?? "07:00",
|
|
|
shutdownEnabled: prefs.getBool('shutdownEnabled') ?? false,
|
|
shutdownEnabled: prefs.getBool('shutdownEnabled') ?? false,
|
|
@@ -559,8 +574,11 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
Future<void> updateProActive(int percentage) =>
|
|
Future<void> updateProActive(int percentage) =>
|
|
|
_updateSettings({'tmppap': percentage});
|
|
_updateSettings({'tmppap': percentage});
|
|
|
|
|
|
|
|
- Future<void> updateAutoShutoff(int minutes) =>
|
|
|
|
|
- _updateSettings({'tmrosd': minutes});
|
|
|
|
|
|
|
+ /// Minutes of inactivity before the controller switches off; 0 disables it.
|
|
|
|
|
+ /// The firmware only acts on `tmrosd` while `tmrosdnbl` is set.
|
|
|
|
|
+ Future<void> updateAutoShutoff(int minutes) => _updateSettings(
|
|
|
|
|
+ minutes > 0 ? {'tmrosd': minutes, 'tmrosdnbl': true} : {'tmrosdnbl': false},
|
|
|
|
|
+ );
|
|
|
|
|
|
|
|
Future<void> updateMaxShotTime(int seconds) async {
|
|
Future<void> updateMaxShotTime(int seconds) async {
|
|
|
if (seconds < 0 || seconds > MeCoffeeProtocol.maxShotSeconds) {
|
|
if (seconds < 0 || seconds > MeCoffeeProtocol.maxShotSeconds) {
|
|
@@ -701,6 +719,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
'pwrflp': 'powerButtonFlipsBack',
|
|
'pwrflp': 'powerButtonFlipsBack',
|
|
|
'tmppap': 'proActivePercentage',
|
|
'tmppap': 'proActivePercentage',
|
|
|
'tmrosd': 'autoShutoffMinutes',
|
|
'tmrosd': 'autoShutoffMinutes',
|
|
|
|
|
+ 'tmrosdnbl': 'autoShutoffEnabled',
|
|
|
'shtmx': 'maxShotTime',
|
|
'shtmx': 'maxShotTime',
|
|
|
'tmpcntns': 'continuousMode',
|
|
'tmpcntns': 'continuousMode',
|
|
|
'tmrwnbl': 'wakeupEnabled',
|
|
'tmrwnbl': 'wakeupEnabled',
|
|
@@ -732,6 +751,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
'powerButtonFlipsBack': value.powerButtonFlipsBack,
|
|
'powerButtonFlipsBack': value.powerButtonFlipsBack,
|
|
|
'proActivePercentage': value.proActivePercentage,
|
|
'proActivePercentage': value.proActivePercentage,
|
|
|
'autoShutoffMinutes': value.autoShutoffMinutes,
|
|
'autoShutoffMinutes': value.autoShutoffMinutes,
|
|
|
|
|
+ 'autoShutoffEnabled': value.autoShutoffEnabled,
|
|
|
'maxShotTime': value.maxShotTime,
|
|
'maxShotTime': value.maxShotTime,
|
|
|
'continuousMode': value.continuousMode,
|
|
'continuousMode': value.continuousMode,
|
|
|
'wakeupEnabled': value.wakeupEnabled,
|
|
'wakeupEnabled': value.wakeupEnabled,
|
|
@@ -807,6 +827,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
'o2',
|
|
'o2',
|
|
|
'pwrflp',
|
|
'pwrflp',
|
|
|
'tmrosd',
|
|
'tmrosd',
|
|
|
|
|
+ 'tmrosdnbl',
|
|
|
'shtmx',
|
|
'shtmx',
|
|
|
'pd1imn',
|
|
'pd1imn',
|
|
|
}.contains,
|
|
}.contains,
|
|
@@ -817,48 +838,59 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (values.isEmpty) return;
|
|
|
|
|
- final commands = values.entries
|
|
|
|
|
- .map(
|
|
|
|
|
- (entry) => MeCoffeeProtocol.encodeSet(
|
|
|
|
|
- entry.key,
|
|
|
|
|
- entry.value,
|
|
|
|
|
- isLegacyV4: state.isLegacyV4Firmware,
|
|
|
|
|
- ),
|
|
|
|
|
- )
|
|
|
|
|
- .toList();
|
|
|
|
|
- if (!await _sendCommand(commands.join().codeUnits)) return;
|
|
|
|
|
- if (!mounted || generation != _connectionGeneration) return;
|
|
|
|
|
- var delivered = state;
|
|
|
|
|
- for (final command in commands) {
|
|
|
|
|
- delivered = MeCoffeeProtocol.parse(command, delivered);
|
|
|
|
|
- }
|
|
|
|
|
- final preferences = _preferenceValues(delivered);
|
|
|
|
|
- try {
|
|
|
|
|
- for (final key in values.keys) {
|
|
|
|
|
- final preferenceKey = _preferenceKeys[key]!;
|
|
|
|
|
|
|
+ // One command per write: each `set` blocks the controller while it
|
|
|
|
|
+ // rewrites EEPROM and its receive buffer holds only 64 bytes. The
|
|
|
|
|
+ // `cmd set s_<key> <stored value> OK` echo confirms delivery and carries
|
|
|
|
|
+ // the value actually stored, which is what gets persisted locally.
|
|
|
|
|
+ for (final entry in values.entries) {
|
|
|
|
|
+ if (!mounted || generation != _connectionGeneration) return;
|
|
|
|
|
+ final command = MeCoffeeProtocol.encodeSet(
|
|
|
|
|
+ entry.key,
|
|
|
|
|
+ entry.value,
|
|
|
|
|
+ isLegacyV4: state.isLegacyV4Firmware,
|
|
|
|
|
+ );
|
|
|
|
|
+ final reply = Completer<String?>();
|
|
|
|
|
+ // A disconnect can fail the reply before it is awaited below.
|
|
|
|
|
+ reply.future.ignore();
|
|
|
|
|
+ _pendingSetEcho = (key: entry.key, reply: reply);
|
|
|
|
|
+ String? confirmation;
|
|
|
|
|
+ try {
|
|
|
|
|
+ if (!await _sendCommand(command.codeUnits)) return;
|
|
|
|
|
+ confirmation = await reply.future.timeout(settingsReplyTimeout);
|
|
|
|
|
+ } on TimeoutException {
|
|
|
|
|
+ _reportCommandError(
|
|
|
|
|
+ 'The controller did not confirm ${entry.key}; it may not be stored.',
|
|
|
|
|
+ );
|
|
|
|
|
+ return;
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ _reportCommandError('Setting ${entry.key} not confirmed: $error');
|
|
|
|
|
+ return;
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ if (identical(_pendingSetEcho?.reply, reply)) _pendingSetEcho = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (confirmation == null) {
|
|
|
|
|
+ _reportCommandError('The controller rejected ${entry.key} (NOT OK).');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!mounted || generation != _connectionGeneration) return;
|
|
|
|
|
+ final preferenceKey = _preferenceKeys[entry.key]!;
|
|
|
|
|
+ try {
|
|
|
if (!await _persistPreference(
|
|
if (!await _persistPreference(
|
|
|
preferenceKey,
|
|
preferenceKey,
|
|
|
- preferences[preferenceKey]!,
|
|
|
|
|
|
|
+ _preferenceValues(state)[preferenceKey]!,
|
|
|
)) {
|
|
)) {
|
|
|
_reportCommandError(
|
|
_reportCommandError(
|
|
|
'Settings delivered but could not be saved locally.',
|
|
'Settings delivered but could not be saved locally.',
|
|
|
);
|
|
);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ } on Exception catch (error) {
|
|
|
|
|
+ _reportCommandError(
|
|
|
|
|
+ 'Settings delivered but could not be saved locally: $error',
|
|
|
|
|
+ );
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
- } on Exception catch (error) {
|
|
|
|
|
- _reportCommandError(
|
|
|
|
|
- 'Settings delivered but could not be saved locally: $error',
|
|
|
|
|
- );
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- if (!mounted || generation != _connectionGeneration) return;
|
|
|
|
|
- var updated = state;
|
|
|
|
|
- for (final command in commands) {
|
|
|
|
|
- updated = MeCoffeeProtocol.parse(command, updated);
|
|
|
|
|
}
|
|
}
|
|
|
- state = updated;
|
|
|
|
|
});
|
|
});
|
|
|
_settingsQueue = operation;
|
|
_settingsQueue = operation;
|
|
|
return operation;
|
|
return operation;
|
|
@@ -1142,6 +1174,7 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
_commandReady = true;
|
|
_commandReady = true;
|
|
|
state = state.copyWith(connectionStatus: 'Connected');
|
|
state = state.copyWith(connectionStatus: 'Connected');
|
|
|
_watchFreshness();
|
|
_watchFreshness();
|
|
|
|
|
+ _startClockSync();
|
|
|
_log(DiagnosticDirection.event, 'Connected via BLE');
|
|
_log(DiagnosticDirection.event, 'Connected via BLE');
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
if (mounted && generation == _connectionGeneration) {
|
|
if (mounted && generation == _connectionGeneration) {
|
|
@@ -1150,13 +1183,46 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Future<bool> _sendInitializationSequence() async {
|
|
|
|
|
|
|
+ /// The firmware ignores a pending clock value of 0, so midnight is sent as 1.
|
|
|
|
|
+ List<int> _clockCommand() {
|
|
|
final now = DateTime.now();
|
|
final now = DateTime.now();
|
|
|
- final secondsPassed = now.hour * 3600 + now.minute * 60 + now.second;
|
|
|
|
|
- if (!await _sendCommand(
|
|
|
|
|
- "\ncmd clock set $secondsPassed\n".codeUnits,
|
|
|
|
|
- initializing: true,
|
|
|
|
|
- )) {
|
|
|
|
|
|
|
+ final seconds = now.hour * 3600 + now.minute * 60 + now.second;
|
|
|
|
|
+ return '\ncmd clock set ${seconds < 1 ? 1 : seconds}\n'.codeUnits;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /// Resend the clock periodically: the controller's mains-derived clock
|
|
|
|
|
+ /// drifts, does not follow DST and restarts at 0 after every reset.
|
|
|
|
|
+ void _startClockSync() {
|
|
|
|
|
+ _clockTimer?.cancel();
|
|
|
|
|
+ final generation = _connectionGeneration;
|
|
|
|
|
+ _clockTimer = Timer.periodic(clockSyncInterval, (_) {
|
|
|
|
|
+ if (!mounted || generation != _connectionGeneration || !_commandReady) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ unawaited(_sendCommand(_clockCommand()));
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /// A boot frame (`tmp 0 …`) or watchdog report while connected means the
|
|
|
|
|
+ /// controller restarted underneath an open link: its clock is reset and
|
|
|
|
|
+ /// settings may have been restored, so repeat the start-up sequence.
|
|
|
|
|
+ void _reinitializeAfterReset(String line) {
|
|
|
|
|
+ if (_reinitializing || !_commandReady || _settingsLocked) return;
|
|
|
|
|
+ _reinitializing = true;
|
|
|
|
|
+ final generation = _connectionGeneration;
|
|
|
|
|
+ _log(
|
|
|
|
|
+ DiagnosticDirection.event,
|
|
|
|
|
+ 'Controller restarted ("$line"); re-sending clock and reading settings',
|
|
|
|
|
+ );
|
|
|
|
|
+ unawaited(
|
|
|
|
|
+ _sendInitializationSequence().whenComplete(() {
|
|
|
|
|
+ if (generation == _connectionGeneration) _reinitializing = false;
|
|
|
|
|
+ }),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Future<bool> _sendInitializationSequence() async {
|
|
|
|
|
+ if (!await _sendCommand(_clockCommand(), initializing: true)) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
if (!await _sendCommand("\ncmd uname OK\n".codeUnits, initializing: true)) {
|
|
if (!await _sendCommand("\ncmd uname OK\n".codeUnits, initializing: true)) {
|
|
@@ -1253,7 +1319,17 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
|
|
|
|
|
void _clearConnection() {
|
|
void _clearConnection() {
|
|
|
_connectionGeneration++;
|
|
_connectionGeneration++;
|
|
|
- _lastPidAt = null;
|
|
|
|
|
|
|
+ _heaterOffConfirmed = false;
|
|
|
|
|
+ _clockTimer?.cancel();
|
|
|
|
|
+ _clockTimer = null;
|
|
|
|
|
+ _reinitializing = false;
|
|
|
|
|
+ final pendingEcho = _pendingSetEcho;
|
|
|
|
|
+ _pendingSetEcho = null;
|
|
|
|
|
+ if (pendingEcho != null && !pendingEcho.reply.isCompleted) {
|
|
|
|
|
+ pendingEcho.reply.completeError(
|
|
|
|
|
+ StateError('Bluetooth disconnected before the controller confirmed'),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
_reportedSettings.clear();
|
|
_reportedSettings.clear();
|
|
|
_pendingFirmwareSettings.clear();
|
|
_pendingFirmwareSettings.clear();
|
|
|
_commandReady = false;
|
|
_commandReady = false;
|
|
@@ -1367,7 +1443,9 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
_pendingFirmwareSettings.clear();
|
|
_pendingFirmwareSettings.clear();
|
|
|
}
|
|
}
|
|
|
if (valid && fields.first == 'pid') {
|
|
if (valid && fields.first == 'pid') {
|
|
|
- if (!state.telemetryStale) _lastPidAt = DateTime.now();
|
|
|
|
|
|
|
+ _heaterOffConfirmed =
|
|
|
|
|
+ !state.telemetryStale &&
|
|
|
|
|
+ fields.skip(1).where((f) => f != 'OK').every((f) => f == '0');
|
|
|
}
|
|
}
|
|
|
if (state.telemetryStale &&
|
|
if (state.telemetryStale &&
|
|
|
(fields.first == 'pid' || fields.first == 'sht')) {
|
|
(fields.first == 'pid' || fields.first == 'sht')) {
|
|
@@ -1388,6 +1466,21 @@ class MeCoffeeService extends StateNotifier<MachineState> {
|
|
|
}
|
|
}
|
|
|
state = parsed;
|
|
state = parsed;
|
|
|
|
|
|
|
|
|
|
+ if (fields.length >= 3 && fields[0] == 'cmd' && fields[1] == 'set') {
|
|
|
|
|
+ final pending = _pendingSetEcho;
|
|
|
|
|
+ if (pending != null && !pending.reply.isCompleted) {
|
|
|
|
|
+ if (fields[2] == 'NOT') {
|
|
|
|
|
+ pending.reply.complete(null);
|
|
|
|
|
+ } else if (fields[2] == 's_${pending.key}') {
|
|
|
|
|
+ pending.reply.complete(line);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (fields.length >= 2 && fields[0] == 'tmp' && fields[1] == '0' ||
|
|
|
|
|
+ line.contains('WDT fired')) {
|
|
|
|
|
+ _reinitializeAfterReset(line);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (valid && (line.startsWith('tmp ') || line.startsWith('T '))) {
|
|
if (valid && (line.startsWith('tmp ') || line.startsWith('T '))) {
|
|
|
final now = DateTime.now();
|
|
final now = DateTime.now();
|
|
|
final fields = line.split(RegExp(r'\s+'));
|
|
final fields = line.split(RegExp(r'\s+'));
|