Segmentation stage 1

This commit is contained in:
2026-04-05 14:55:04 +02:00
parent 5241d06e7b
commit fb35d6c3d4
20 changed files with 467 additions and 117 deletions

18
src/dataflux/state.py Normal file
View File

@@ -0,0 +1,18 @@
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
# SPDX-License-Identifier: GPL-3.0-or-later
from dataclasses import dataclass, field
from threading import Lock, Thread
from serial import Serial
@dataclass
class AppState:
running: bool = True
serial_port: Serial | None = None
serial_thread: Thread | None = None
telemetry_thread: Thread | None = None
lock: Lock = field(default_factory=Lock)