Skip to content

Commit 9f7e717

Browse files
committed
Add admin password access field
1 parent 3762f19 commit 9f7e717

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ After connecting, a **Config** button appears in the toolbar. Click it — or ty
199199
| Radio | `freq` · `bw` · `sf` · `cr` · `tx` · `af` · `repeat` · `dutycycle` · `radio.rxgain` |
200200
| Advertising | `advert.interval` · `flood.advert.interval` |
201201
| Flood / Routing | `flood.max` · `flood.advert.base` · `flood.relay.prob` · `flood.dynamic.enable` · `path.hash.mode` · `loop.detect` · `multi.acks` · `int.thresh` · `rxdelay` · `txdelay` · `direct.txdelay` · `agc.reset.interval` |
202-
| Access | `guest.password` · `allow.read.only` |
202+
| Access | admin password (`password <pwd>`) · `guest.password` · `allow.read.only` |
203203
| TCP Bridge | `bridge.enabled` · `wifi.ssid` · `wifi.password` · `bridge.server` · `bridge.port` · `bridge.delay` |
204204
| ESPNow Bridge | `bridge.source` · `bridge.baud` · `bridge.channel` · `bridge.secret` |
205205
| Regions | `region home` · `region default` · `region allowf/denyf` · `region put` · `regiondb find` |
206206

207-
WiFi password fields are write-only (never fetched from the device). Leave blank to keep the current password unchanged.
207+
Admin, WiFi and bridge secret fields are write-only (never fetched from the device). Leave blank to keep the current value unchanged.
208208
All TCP Bridge and ESPNow Bridge settings require a device reboot before they take effect.
209209

210210
---

docs/ANLEITUNG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ Sobald du verbunden bist, erscheint die Schaltfläche **Config** in der Werkzeug
203203
| Radio | `freq` · `bw` · `sf` · `cr` · `tx` · `af` · `repeat` · `dutycycle` · `radio.rxgain` |
204204
| Advertising | `advert.interval` · `flood.advert.interval` |
205205
| Flood / Routing | `flood.max` · `flood.advert.base` · `flood.relay.prob` · `flood.dynamic.enable` · `path.hash.mode` · `loop.detect` · `multi.acks` · `int.thresh` · `rxdelay` · `txdelay` · `direct.txdelay` · `agc.reset.interval` |
206-
| Access | `guest.password` · `allow.read.only` |
206+
| Access | Admin-Passwort (`password <passwort>`) · `guest.password` · `allow.read.only` |
207207
| TCP Bridge | `bridge.enabled` · `wifi.ssid` · `wifi.password` · `bridge.server` · `bridge.port` · `bridge.delay` |
208208
| ESPNow Bridge | `bridge.source` · `bridge.baud` · `bridge.channel` · `bridge.secret` |
209209
| Regionen | `region home` · `region default` · `region allowf/denyf` · `region put` · `regiondb find` |
210210

211-
Das WiFi-Passwortfeld ist nur schreibend (es wird nie vom Gerät gelesen). Lass es leer, um das aktuelle Passwort unverändert zu lassen.
211+
Admin-, WiFi- und Bridge-Secret-Felder sind nur schreibend (sie werden nie vom Gerät gelesen). Lass sie leer, um den aktuellen Wert unverändert zu lassen.
212212
Alle TCP-Bridge- und ESPNow-Bridge-Einstellungen benötigen einen Neustart des Geräts, bevor sie aktiv werden.
213213

214214
---

docs/HANDLEIDING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ Zodra je verbonden bent verschijnt de knop **Config** in de werkbalk. Klik erop
202202
| Radio | `freq` · `bw` · `sf` · `cr` · `tx` · `af` · `repeat` · `dutycycle` · `radio.rxgain` |
203203
| Advertising | `advert.interval` · `flood.advert.interval` |
204204
| Flood / Routing | `flood.max` · `flood.advert.base` · `flood.relay.prob` · `flood.dynamic.enable` · `path.hash.mode` · `loop.detect` · `multi.acks` · `int.thresh` · `rxdelay` · `txdelay` · `direct.txdelay` · `agc.reset.interval` |
205-
| Access | `guest.password` · `allow.read.only` |
205+
| Access | admin-wachtwoord (`password <wachtwoord>`) · `guest.password` · `allow.read.only` |
206206
| TCP Bridge | `bridge.enabled` · `wifi.ssid` · `wifi.password` · `bridge.server` · `bridge.port` · `bridge.delay` |
207207
| ESPNow Bridge | `bridge.source` · `bridge.baud` · `bridge.channel` · `bridge.secret` |
208208
| Regio's | `region home` · `region default` · `region allowf/denyf` · `region put` · `regiondb find` |
209209

210-
Het wifi-wachtwoordveld is alleen schrijven (wordt nooit van het apparaat opgehaald). Laat het leeg om het huidige wachtwoord ongewijzigd te laten.
210+
Admin-, wifi- en bridge-secretvelden zijn alleen schrijven (worden nooit van het apparaat opgehaald). Laat ze leeg om de huidige waarde ongewijzigd te laten.
211211
Alle TCP Bridge- en ESPNow Bridge-instellingen vereisen een herstart van het apparaat voordat ze actief worden.
212212

213213
---

lib/features/console/config_dialog.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const _kSections = <_Section>[
7070
_Param('agc.reset.interval', 'AGC reset interval', unit: 's'),
7171
]),
7272
_Section('Access', <_Param>[
73+
_Param('admin.password', 'Admin password', isSecret: true),
7374
_Param('guest.password', 'Guest password'),
7475
_Param('allow.read.only', 'Allow read-only', options: ['on', 'off']),
7576
]),
@@ -197,7 +198,7 @@ const _wizardSteps = <_WizardStep>[
197198
'flood.dup.suppress',
198199
'malformed.drop',
199200
]),
200-
_WizardStep('Access', ['guest.password', 'allow.read.only']),
201+
_WizardStep('Access', ['admin.password', 'guest.password', 'allow.read.only']),
201202
_WizardStep('Bridge', [
202203
'bridge.enabled',
203204
'wifi.ssid',

lib/features/console/console_screen.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,9 @@ class _ConsoleScreenState extends ConsumerState<ConsoleScreen> {
605605
builder: (_) => SerialConfigDialog(
606606
deviceName: deviceName,
607607
queryParam: (key) => _queryRawSerial(console, 'get $key'),
608-
setParam: (key, value) => _queryRawSerial(console, 'set $key $value'),
608+
setParam: (key, value) => key == 'admin.password'
609+
? _queryRawSerial(console, 'password $value')
610+
: _queryRawSerial(console, 'set $key $value'),
609611
sendCommand: (cmd) => console.sendLine(cmd),
610612
),
611613
);
@@ -627,7 +629,9 @@ class _ConsoleScreenState extends ConsumerState<ConsoleScreen> {
627629
deviceName: deviceName,
628630
queryParam: (key) => _queryRawSerial(console, 'get $key'),
629631
queryCommand: (cmd) => _queryRegionAwareRawSerial(console, cmd),
630-
setParam: (key, value) => _queryRawSerial(console, 'set $key $value'),
632+
setParam: (key, value) => key == 'admin.password'
633+
? _queryRawSerial(console, 'password $value')
634+
: _queryRawSerial(console, 'set $key $value'),
631635
sendCommand: (cmd) => console.sendLine(cmd),
632636
),
633637
);

0 commit comments

Comments
 (0)