autoconnect on fly mode (does not work yet)
This commit is contained in:
@@ -84,6 +84,13 @@ class AppSettingsTable extends Table {
|
||||
TextColumn get connectionWifiSsidPrefix =>
|
||||
text().withDefault(const Constant(kDefaultWifiSsidPrefix))();
|
||||
|
||||
/// Exakte SSID der zuletzt erfolgreich verbundenen mLRS-Bruecke (Doku
|
||||
/// Abschnitt 8: "verbundenes WLAN merken") - null, solange noch nie
|
||||
/// erfolgreich verbunden wurde. Wird fuer kuenftige Verbindungsversuche
|
||||
/// als exakter WifiNetworkSpecifier statt Praefix verwendet, damit Android
|
||||
/// ohne erneuten Systemdialog automatisch verbinden kann.
|
||||
TextColumn get connectionWifiLastSsid => text().nullable()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
}
|
||||
@@ -95,7 +102,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase.forTesting(super.executor);
|
||||
|
||||
@override
|
||||
int get schemaVersion => 5;
|
||||
int get schemaVersion => 6;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration => MigrationStrategy(
|
||||
@@ -133,6 +140,12 @@ class AppDatabase extends _$AppDatabase {
|
||||
appSettingsTable.connectionWifiSsidPrefix,
|
||||
);
|
||||
}
|
||||
if (from < 6) {
|
||||
await m.addColumn(
|
||||
appSettingsTable,
|
||||
appSettingsTable.connectionWifiLastSsid,
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user