GNSS szervíz refraktorálás, hibajavítás, PhoneGpsConnection osztály
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user