wifi connection established by app, process socket binding, primary os connection untouched
This commit is contained in:
@@ -78,6 +78,12 @@ class AppSettingsTable extends Table {
|
||||
IntColumn get connectionWifiPort =>
|
||||
integer().withDefault(const Constant(kDefaultWifiPort))();
|
||||
|
||||
/// SSID-Praefix fuer den app-initiierten WLAN-Verbindungsaufbau per
|
||||
/// `WifiNetworkSpecifier` (Doku Kommunikationsschicht v2 Abschnitt 4/8),
|
||||
/// Standard "mLRS-", ueberschreibbar.
|
||||
TextColumn get connectionWifiSsidPrefix =>
|
||||
text().withDefault(const Constant(kDefaultWifiSsidPrefix))();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
}
|
||||
@@ -89,7 +95,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase.forTesting(super.executor);
|
||||
|
||||
@override
|
||||
int get schemaVersion => 4;
|
||||
int get schemaVersion => 5;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration => MigrationStrategy(
|
||||
@@ -121,6 +127,12 @@ class AppDatabase extends _$AppDatabase {
|
||||
appSettingsTable.connectionWifiPort,
|
||||
);
|
||||
}
|
||||
if (from < 5) {
|
||||
await m.addColumn(
|
||||
appSettingsTable,
|
||||
appSettingsTable.connectionWifiSsidPrefix,
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user