mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-21 00:01:06 +10:00
Add latitude and longitude fields to contact handling in MeshCoreConnector
This commit is contained in:
@@ -1572,6 +1572,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
type: contact.type,
|
type: contact.type,
|
||||||
pathLength: contact.pathLength,
|
pathLength: contact.pathLength,
|
||||||
path: contact.path,
|
path: contact.path,
|
||||||
|
latitude: contact.latitude,
|
||||||
|
longitude: contact.longitude,
|
||||||
lastSeen: DateTime.now(),
|
lastSeen: DateTime.now(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -3890,8 +3892,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
appLogger.warn('Malformed RX frame: $e', tag: 'Connector');
|
appLogger.warn('Malformed RX frame: $e', tag: 'Connector');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
double latitude = 0.0;
|
double? latitude;
|
||||||
double longitude = 0.0;
|
double? longitude;
|
||||||
String name = '';
|
String name = '';
|
||||||
Uint8List publicKey = Uint8List(0);
|
Uint8List publicKey = Uint8List(0);
|
||||||
int type = 0;
|
int type = 0;
|
||||||
@@ -3951,8 +3953,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
double snr,
|
double snr,
|
||||||
) {
|
) {
|
||||||
final advert = BufferReader(payload);
|
final advert = BufferReader(payload);
|
||||||
double latitude = 0.0;
|
double? latitude;
|
||||||
double longitude = 0.0;
|
double? longitude;
|
||||||
String name = '';
|
String name = '';
|
||||||
String contactKeyHex = '';
|
String contactKeyHex = '';
|
||||||
Uint8List publicKey = Uint8List(0);
|
Uint8List publicKey = Uint8List(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user