mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Add latitude and longitude fields to contact handling in MeshCoreConnector
This commit is contained in:
parent
b748b96237
commit
84ec139ce6
1 changed files with 6 additions and 4 deletions
|
|
@ -1572,6 +1572,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
type: contact.type,
|
||||
pathLength: contact.pathLength,
|
||||
path: contact.path,
|
||||
latitude: contact.latitude,
|
||||
longitude: contact.longitude,
|
||||
lastSeen: DateTime.now(),
|
||||
),
|
||||
);
|
||||
|
|
@ -3890,8 +3892,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
appLogger.warn('Malformed RX frame: $e', tag: 'Connector');
|
||||
return;
|
||||
}
|
||||
double latitude = 0.0;
|
||||
double longitude = 0.0;
|
||||
double? latitude;
|
||||
double? longitude;
|
||||
String name = '';
|
||||
Uint8List publicKey = Uint8List(0);
|
||||
int type = 0;
|
||||
|
|
@ -3951,8 +3953,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
double snr,
|
||||
) {
|
||||
final advert = BufferReader(payload);
|
||||
double latitude = 0.0;
|
||||
double longitude = 0.0;
|
||||
double? latitude;
|
||||
double? longitude;
|
||||
String name = '';
|
||||
String contactKeyHex = '';
|
||||
Uint8List publicKey = Uint8List(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue