GNSS szervíz refraktorálás, hibajavítás, PhoneGpsConnection osztály

This commit is contained in:
2026-05-17 15:04:48 +02:00
parent ee0f90e247
commit 24a6b7d513
8 changed files with 221 additions and 112 deletions
+7
View File
@@ -1,5 +1,9 @@
// lib/services/gnss/gnss_connection.dart
import 'dart:typed_data';
import 'package:geolocator/geolocator.dart';
import 'gnss_device_service.dart';
enum GnssConnectionState { disconnected, connecting, connected, error }
@@ -9,6 +13,7 @@ abstract class GnssConnection {
/// NMEA sorok stream-je — mindkét implementáció ezt adja
Stream<String> get nmeaLines;
Stream<Position> get positionStream;
/// Kapcsolat állapota
Stream<GnssConnectionState> get connectionState;
@@ -17,4 +22,6 @@ abstract class GnssConnection {
Future<void> disconnect();
void dispose();
void sendData(Uint8List data);
}