autoconnect on fly mode (does not work yet)
This commit is contained in:
@@ -16,6 +16,8 @@ final wifiTransportProvider = Provider<UdpTransport>((ref) {
|
||||
getHost: settingsRepo.loadConnectionWifiHost,
|
||||
getPort: settingsRepo.loadConnectionWifiPort,
|
||||
getSsidPrefix: settingsRepo.loadConnectionWifiSsidPrefix,
|
||||
getRememberedSsid: settingsRepo.loadConnectionWifiLastSsid,
|
||||
rememberSsid: settingsRepo.setConnectionWifiLastSsid,
|
||||
);
|
||||
ref.onDispose(transport.dispose);
|
||||
return transport;
|
||||
@@ -134,9 +136,10 @@ class WifiConnectionLogNotifier
|
||||
final message = switch (linkState) {
|
||||
LinkState.disconnected => 'Disconnected',
|
||||
LinkState.connecting => 'Requesting mLRS network...',
|
||||
LinkState.connected =>
|
||||
'Network available, listening on port ${transport.boundPort}'
|
||||
' (STA concurrency: ${_formatStaConcurrency(transport.staConcurrencySupported)})',
|
||||
LinkState.connected => 'Connected to '
|
||||
'${transport.connectedSsid ?? 'network'}, listening on port '
|
||||
'${transport.boundPort} (STA concurrency: '
|
||||
'${_formatStaConcurrency(transport.staConcurrencySupported)})',
|
||||
LinkState.error => 'Error: '
|
||||
'${transport.lastErrorMessage ?? transport.lastErrorReason?.name ?? 'unknown'}',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user