Hand-coded Settings + tabbed Gauge Tuning; remembered Wi-Fi; on-screen updates
Firmware / build (push) Successful in 3m58s
Firmware / build (push) Successful in 3m58s
Settings (replaces the SquareLine screen, now deleted): sidebar with Wi-Fi (switch, status card with failure reasons, networks nearby, full-screen password page), Updates (installed vs latest, Check, Install behind a confirm dialog) and System (CAN / link / perf overlay switches, live link, CAN, memory, uptime). Gauge Tuning: tabs Tachometer / Coolant gauge / Alerts / Simulation, 56 px -/+ rows with hints and real units, accelerating hold-to-repeat, per-tab Reset with confirm, save indicator, SIMULATION ON chip, swipe left to go back. WiFiManager rewritten without LVGL code: one remembered network (NVS "wifi"), auto-join at boot, scans only on request, no endless reconnect (keeps the ESP-NOW channel stable), failure reasons from the disconnect event, password never logged. Ota gains getStatus()/requestCheck()/ requestInstall() for the screen. CAN/UART switches become setEnabled(). Shared ui_kit (header, buttons, switches, confirm dialog); Montserrat 20/24 enabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ Automotive display controller for **Waveshare ESP32-S3-Touch-LCD-5B** (1024x600
|
||||
|
||||
**Hardware**: ESP32-S3 dual-core @ 240MHz, 16MB Flash, 8MB OPI PSRAM, 5-inch capacitive touch LCD
|
||||
|
||||
**Key Features**: WiFi scanning, UART data transmission @ 5Hz, debug metrics (FPS/CPU), NVS settings persistence, LVGL 8.4.0 UI (SquareLine Studio exports)
|
||||
**Key Features**: CAN decode, link to B (UART + ESP-NOW @ 5 Hz), remembered Wi-Fi + on-screen OTA updates, gauge tuning, NVS settings persistence, LVGL 8.4.0 UI (hand-coded screens)
|
||||
|
||||
## Build & Development Commands
|
||||
|
||||
@@ -74,15 +74,17 @@ The project follows a clean, organized structure with logical separation of conc
|
||||
src/
|
||||
main.cpp # Main application logic only
|
||||
modules/
|
||||
wifi_manager.cpp # WiFi scanning and connection
|
||||
wifi_manager.cpp # Wi-Fi: one remembered network, scans on request (no LVGL code)
|
||||
settings_screen.cpp # Hand-coded Settings screen: Wi-Fi / Updates / System (swipe left from Driveline)
|
||||
ui_kit.cpp # Shared look for hand-coded screens: header, buttons, switches, confirm dialog
|
||||
uart_manager.cpp # Link transmitter: v2 DATA/CONFIG frames on UART1 + ESP-NOW
|
||||
tunables.cpp # Gauge calibration + alert thresholds (NVS, 'cfg' serial console)
|
||||
espnow_link.cpp # ESP-NOW broadcast leg of the link
|
||||
tuning_screen.cpp # Hand-coded LVGL Gauge Tuning screen (swipe right from Driveline)
|
||||
tuning_screen.cpp # Hand-coded Gauge Tuning screen, 4 tabs (swipe right from Driveline)
|
||||
diag_probe.cpp # On-demand OBD-II requests ('diag' console) - the ONLY CAN transmitter
|
||||
ota_update.cpp # Manual firmware updates from Gitea releases ('ota' console)
|
||||
settings_manager.cpp # NVS persistent storage
|
||||
ui_state_manager.cpp # UI synchronization logic
|
||||
ui_state_manager.cpp # Debug flag (performance overlay, sent to B)
|
||||
display_init.cpp # Display initialization; boots into DrivelineScreen
|
||||
driveline_screen.cpp # Hand-coded LVGL boot screen (gear, temps, rpm, status)
|
||||
drivers/
|
||||
@@ -103,10 +105,7 @@ include/
|
||||
|
||||
**src/main.cpp** (~1530 lines)
|
||||
- Main application logic, event handlers, FreeRTOS task implementations
|
||||
- WiFi state machine: `wifiTask()` on Core 0 with async scanning
|
||||
- UART state machine: `uartTask()` on Core 0 with periodic transmission
|
||||
- Settings synchronization: `applySavedStatesToUI()` syncs toggle states when Settings screen loads
|
||||
- Thread-safe UI updates via `lvgl_port_lock()`/`unlock()`
|
||||
- Console command routing (`cfg`, `diag`, `ota`, `wifi`, `mem`), setup order, `loop()` ticks for the three screens
|
||||
|
||||
**include/protocol/automotive_data.h**
|
||||
- **Shared with Controller B, must stay byte-identical in both repos.** Protocol v2 (2026-09-21).
|
||||
@@ -134,11 +133,8 @@ include/
|
||||
- LVGL 8.4.0 configuration file
|
||||
- Memory settings, theme configuration, widget enables
|
||||
|
||||
**include/ui/** directory (SquareLine Studio exports)
|
||||
- `ui_Settings_Screen.c/h`: WiFi, UART, CAN Bus, Debug toggle switches and containers. Its right-swipe calls `app_show_driveline()` (C entry point in `driveline_screen.cpp`)
|
||||
- The SquareLine **Home screen was removed on 2026-09-21** (its meters module too). `ui_init()` loads an empty placeholder; `display_init.cpp` then shows the Driveline screen. If SquareLine re-exports a Home screen, delete it from the SquareLine project — do not wire it back in
|
||||
- External UI references: `uic_Toggle_Wifi_Switch`, `uic_Toggle_UART_Switch`, `uic_Toggle_CAN_Bus_Switch`, `uic_Toggle_Debug_Switch`, `uic_Wifi_Container`, `uic_Settings_Loading_Container`, `uic_Device_State_Container`
|
||||
- Event handlers: `onWifiToggle()`, `onUARTToggle()`, `onCANBusToggle()`, `onDebugToggle()`
|
||||
**include/ui/** directory (SquareLine Studio exports) - now only `ui_init()` (theme + an empty placeholder screen) and helpers
|
||||
- **No SquareLine screens remain**: Home was removed 2026-09-21, Settings on 2026-09-27 (replaced by `settings_screen.cpp`). Every screen is hand-coded in `src/modules`. If SquareLine ever re-exports a screen, delete it from the SquareLine project - do not wire it back in
|
||||
- **Important**: SquareLine Studio exports to `include/ui/` directory to avoid overwriting custom code in `src/`
|
||||
|
||||
### NVS Persistent Storage
|
||||
@@ -147,32 +143,17 @@ Settings persist across power cycles via ESP32 NVS (Non-Volatile Storage):
|
||||
- Namespace: "settings"
|
||||
- Keys: `wifi_en`, `uart_en`, `can_en`, `debug_en` (boolean values)
|
||||
- Functions: `saveWiFiState()`, `loadWiFiState()`, `saveUARTState()`, `loadUARTState()`, `saveCANState()`, `loadCANState()`, `saveDebugState()`, `loadDebugState()`
|
||||
- Namespace "wifi": `ssid`, `pass` - the one remembered network (`WiFiManager`); the password is never printed
|
||||
|
||||
### WiFi Architecture
|
||||
|
||||
**State Machine**: `WIFI_STATE_OFF` → `WIFI_STATE_SCANNING` → `WIFI_STATE_SCAN_COMPLETE` → `WIFI_STATE_CONNECTED`
|
||||
`WiFiManager` (`wifi_manager.cpp`) owns **no LVGL objects**: the Settings screen polls `getStatus()` / `getNetworks()` and calls `setEnabled()`, `requestScan()`, `connect()`, `connectSaved()`, `forget()`. All radio work runs in `wifiTask()` (Core 0) from a command queue.
|
||||
|
||||
**Task Communication**:
|
||||
- Main thread → WiFi task: Via `g_wifi_event_queue` (FreeRTOS queue)
|
||||
- Event types: `WIFI_UI_EVENT_TOGGLE_ON/OFF`, `WIFI_UI_EVENT_SCAN_START`, `WIFI_UI_EVENT_CONNECT`, `WIFI_UI_EVENT_DISCONNECT`
|
||||
- Shared data protection: `g_wifi_mutex` (FreeRTOS semaphore) guards `g_scanned_networks[]` array
|
||||
|
||||
**Scanning**: only while the network list is on screen (`uic_Wifi_Container != NULL`) and not connected - background scans every 10 s caused display glitches (Wi-Fi buffers share PSRAM with the framebuffer) and hop the radio ESP-NOW uses.
|
||||
|
||||
**Dynamic SSID Buttons**:
|
||||
- WiFi scan results create dynamically-generated LVGL buttons (`lv_btn_create()` in `updateSSIDList()`)
|
||||
- Button array: `g_ssid_buttons[WIFI_SCAN_MAX_NETWORKS]` (max 20 networks)
|
||||
- Each button stores network index in user data: `lv_obj_set_user_data(btn, (void*)(intptr_t)i)`
|
||||
- Each button clears its own `g_ssid_buttons[]` slot on `LV_EVENT_DELETE`: SquareLine deletes the whole Settings screen when it is left, and stale pointers here corrupted LVGL's heap
|
||||
- Click handler: `onSSIDButtonClick()` → shows password entry UI (keyboard + text area) for secured networks, or connects directly for open networks
|
||||
|
||||
**Connection Flow**:
|
||||
1. User clicks SSID button → `onSSIDButtonClick()`
|
||||
2. If secured: Show `uic_Wifi_Passkey_TB` (password text area) + `uic_Keyboard`
|
||||
3. User enters password → `onKeyboardEvent()` (LV_EVENT_READY)
|
||||
4. Allocate `wifi_credentials_t`, send `WIFI_UI_EVENT_CONNECT` to WiFi task
|
||||
5. WiFi task: `WiFi.begin(ssid, password)` with 10-second timeout
|
||||
6. Result: `showConnectionResult()` updates UI with success/failure
|
||||
- **One remembered network** (NVS namespace `wifi`), saved after a successful join, joined automatically ~3 s after boot when Wi-Fi is on (verified 2026-09-27)
|
||||
- **Scans only on request** (Wi-Fi page opened while not connected, or the Scan button) - background scans every 10 s caused display glitches and hop the radio ESP-NOW uses
|
||||
- **No endless reconnect**: `setAutoReconnect(false)`; one attempt at boot, one retry after a drop, then idle back on `ESPNOW_CHANNEL`
|
||||
- Failure reasons come from the STA_DISCONNECTED event (wrong password, not in range, ...) and show on the screen
|
||||
- Console: `wifi status | join <ssid> [pass] | forget | scan | on | off`
|
||||
|
||||
### UART Architecture
|
||||
|
||||
@@ -226,7 +207,7 @@ Settings persist across power cycles via ESP32 NVS (Non-Volatile Storage):
|
||||
|
||||
### Tunables (gauge calibration, alert thresholds)
|
||||
|
||||
`src/modules/tunables.cpp` owns `link_config_t`: tach pulses/rev + trim + clamps, coolant PWM frequency + duty law + min temp, per-output enables, a bench override (force rpm / duty), and the alert thresholds. Stored as an NVS blob (namespace `tunables`), written 3 s after the last change or on leaving the Tuning screen (`Tunables::flush()`) - every flash write flickers the RGB panel, so no write per tap. Edited over the USB serial console: `cfg show`, `cfg set <name> <value>`, `cfg override rpm <n> | duty <n> | both <rpm> <duty> | off`, `cfg reset`. Every change bumps `cfg_version`, which makes the UART task push a CONFIG frame. Overrides are pushed but never saved. The **Gauge Tuning screen** (`src/modules/tuning_screen.cpp`, hand-coded like the driveline screen so SquareLine exports cannot clobber it; Home → swipe right → Driveline → swipe right → Tuning) edits the same values with −/+ buttons, enable switches, and an override panel with RPM and duty sliders. Overrides are never written to NVS (`save()` strips them).
|
||||
`src/modules/tunables.cpp` owns `link_config_t`: tach pulses/rev + trim + clamps, coolant PWM frequency + duty law + min temp, per-output enables, a bench override (force rpm / duty), and the alert thresholds. Stored as an NVS blob (namespace `tunables`), written 3 s after the last change or on leaving the Tuning screen (`Tunables::flush()`, `isDirty()` drives the screen's save indicator) - every flash write flickers the RGB panel, so no write per tap. Edited over the USB serial console: `cfg show`, `cfg set <name> <value>`, `cfg override rpm <n> | duty <n> | both <rpm> <duty> | off`, `cfg reset`. Every change bumps `cfg_version`, which makes the UART task push a CONFIG frame. Overrides are pushed but never saved. The **Gauge Tuning screen** (`src/modules/tuning_screen.cpp`, see Screens) edits the same values with −/+ buttons, enable switches, and a Simulation tab with RPM and duty sliders. Overrides are never written to NVS (`save()` strips them).
|
||||
|
||||
### Diagnostic probe (`diag` console)
|
||||
|
||||
@@ -234,28 +215,21 @@ Settings persist across power cycles via ESP32 NVS (Non-Volatile Storage):
|
||||
|
||||
### OTA updates (`ota` console)
|
||||
|
||||
`src/modules/ota_update.cpp` pulls signed firmware from this repo's Gitea releases (`include/config/ota_config.h`: server, repo, Let's Encrypt roots, signing public key). Manual only: `ota status | check | install [force] | rollback` - the future password-gated Diagnostics screen will call the same code. Install is refused unless parked (engine off, shaft still, lever not in a drive gear; silent bus = parked), checked before download and again before the slot switch. The manifest's ECDSA P-256 signature over `patrol-a|version|sha256` is checked before download; the streamed image must match that sha256. `verifyRollbackLater()` is overridden so a new image stays pending until `Ota::tick()` confirms it after 30 s - a reset before that rolls back. CI: `.gitea/workflows/firmware.yml` (push `main` -> rolling unsigned pre-release `main-latest`; tag `v*` -> signed release, needs repo secret `BMW_NISSAN_FIRMWARE_SIGNING_KEY`). Release with one push so only the tag build runs: `git tag -a vX.Y.Z -m "..." && git push --follow-tags origin main` (a main push skips itself when its commit is tagged, or when it only touches `wiki/**` / `*.md`). Never put secrets in firmware source - the repo and its release binaries are public. Jobs run inside the loop task (8 KB stack) with mbedtls routed to PSRAM - internal RAM is too tight for a TLS task (15.9 KB free, largest block 7.6 KB with Wi-Fi up). `wifi join <ssid> [pass] | status | off` (in `wifi_manager.cpp`) joins a network from the console. Details: `wiki/pages/ota-updates.md`.
|
||||
`src/modules/ota_update.cpp` pulls signed firmware from this repo's Gitea releases (`include/config/ota_config.h`: server, repo, Let's Encrypt roots, signing public key). Manual only: Settings → Updates (Check, then Install behind a confirm dialog; verified end-to-end from the screen 2026-09-27) or the console `ota status | check | install [force] | rollback`. `Ota::getStatus()` gives the screen a phase + latest tag + failure reason. Install is refused unless parked (engine off, shaft still, lever not in a drive gear; silent bus = parked), checked before download and again before the slot switch. The manifest's ECDSA P-256 signature over `patrol-a|version|sha256` is checked before download; the streamed image must match that sha256. `verifyRollbackLater()` is overridden so a new image stays pending until `Ota::tick()` confirms it after 30 s - a reset before that rolls back. CI: `.gitea/workflows/firmware.yml` (push `main` -> rolling unsigned pre-release `main-latest`; tag `v*` -> signed release, needs repo secret `BMW_NISSAN_FIRMWARE_SIGNING_KEY`). Release with one push so only the tag build runs: `git tag -a vX.Y.Z -m "..." && git push --follow-tags origin main` (a main push skips itself when its commit is tagged, or when it only touches `wiki/**` / `*.md`). Never put secrets in firmware source - the repo and its release binaries are public. Jobs run inside the loop task (8 KB stack) with mbedtls routed to PSRAM - internal RAM is too tight for a TLS task (15.9 KB free, largest block 7.6 KB with Wi-Fi up). Wi-Fi is joined on the Settings screen (remembered) or with `wifi join`. Details: `wiki/pages/ota-updates.md`.
|
||||
|
||||
### ESP-NOW link
|
||||
|
||||
`src/modules/espnow_link.cpp` broadcasts every frame on Wi-Fi channel `ESPNOW_CHANNEL` (1). The radio stays in STA mode permanently — `WiFiManager`'s "off" only stops scanning/association. Never call `WiFi.disconnect(true)` or `WiFi.mode(WIFI_OFF)`: powering the radio off de-initialises ESP-NOW (`send()` re-inits it as a safety net). If Wi-Fi joins an AP the channel follows the AP; B hops to find it.
|
||||
|
||||
### UI State Synchronization
|
||||
### Screens
|
||||
|
||||
**Problem**: SquareLine Studio screens get destroyed/recreated when swiping between screens, losing runtime state.
|
||||
All hand-coded in `src/modules`, built once and kept (never deleted - SquareLine's delete-on-leave caused dangling pointers and the 2026-09-27 freezes). Shared look in `ui_kit.cpp` (20/24 px text, >= 56 px touch targets, no shadows/animations, `UiKit::confirm()` modal dialog). Each screen has a `tick()` called from `loop()` that refreshes values under the LVGL lock, only while it is shown, and only re-sets label text that changed.
|
||||
|
||||
**Solution**: `applySavedStatesToUI()` function (called continuously in `loop()`)
|
||||
- Detects when Settings screen loads by checking if `uic_Toggle_Wifi_Switch != NULL`
|
||||
- Tracks screen instance via `g_last_synced_screen` pointer to prevent redundant syncing
|
||||
- Syncs toggle switches with actual service states: `g_wifi_state`, `g_uart_state`, `g_debug_enabled`
|
||||
- Shows loading spinner during sync for smooth UX
|
||||
|
||||
**Screens**: Driveline (boot, hand-coded) ← swipe left → Settings (SquareLine); Driveline → swipe right → Gauge Tuning (hand-coded). Screen switches are instant (`LV_SCR_LOAD_ANIM_NONE`): full-screen fades are software-blended every frame and stutter at 1024x600. The firmware version is a label on `lv_layer_top()` (bottom-right, every screen, `DisplayInit`).
|
||||
|
||||
**Debug Mode**:
|
||||
- Toggle in Settings screen shows/hides `uic_Device_State_Container`
|
||||
- Updates FPS (`uic_FPS_Values_LBL`) and CPU usage (`uic_CPU_Values_LBL`) every second
|
||||
- Frame counting: `g_frame_count` incremented in `updateDebugMetrics()` called from `loop()`
|
||||
- **Driveline** (boot) - swipe left: Settings, swipe right: Gauge Tuning
|
||||
- **Settings** (`settings_screen.cpp`) - sidebar: **Wi-Fi** (switch, status card, networks nearby, full-screen password page), **Updates** (installed vs latest, Check, Install behind a confirm dialog -> `Ota::requestCheck/requestInstall`), **System** (CAN / link to B / performance overlay switches, live ESP-NOW, CAN, memory, uptime). Swipe right or the Driveline button goes back
|
||||
- **Gauge Tuning** (`tuning_screen.cpp`) - tabs Tachometer / Coolant gauge / Alerts / Simulation; -/+ rows with hints (hold to repeat, speeds up), per-tab Reset with confirm, "Saving... / All changes saved" footer, SIMULATION ON chip while an override is active. Swipe left or the Driveline button goes back
|
||||
- Screen switches are instant (`LV_SCR_LOAD_ANIM_NONE`): full-screen fades are software-blended every frame and stutter at 1024x600. The firmware version is a label on `lv_layer_top()` (bottom-right, every screen, `DisplayInit`)
|
||||
- The System page's "Performance overlay" switch shows LVGL's own perf monitor (real render FPS / CPU) and sets the debug flag sent to B
|
||||
|
||||
## Configuration Files
|
||||
|
||||
@@ -289,35 +263,9 @@ Settings persist across power cycles via ESP32 NVS (Non-Volatile Storage):
|
||||
|
||||
## Common Patterns
|
||||
|
||||
### Adding a New Toggle Switch
|
||||
### Adding a New Setting
|
||||
|
||||
1. Add NVS keys in main.cpp:
|
||||
```cpp
|
||||
#define NVS_KEY_FEATURE_ENABLED "feature_en"
|
||||
```
|
||||
|
||||
2. Add save/load functions:
|
||||
```cpp
|
||||
void saveFeatureState(bool enabled) {
|
||||
preferences.begin(NVS_NAMESPACE, false);
|
||||
preferences.putBool(NVS_KEY_FEATURE_ENABLED, enabled);
|
||||
preferences.end();
|
||||
}
|
||||
```
|
||||
|
||||
3. Add global state variable: `static bool g_feature_enabled = false;`
|
||||
|
||||
4. Create event handler (called from SquareLine UI):
|
||||
```cpp
|
||||
void onFeatureToggle(lv_event_t *e) {
|
||||
lv_obj_t *target = lv_event_get_target(e);
|
||||
bool state = lv_obj_has_state(target, LV_STATE_CHECKED);
|
||||
saveFeatureState(state);
|
||||
// Update state, send to task if needed
|
||||
}
|
||||
```
|
||||
|
||||
5. Add sync logic in `applySavedStatesToUI()` to restore state when Settings screen loads
|
||||
See "Adding a setting" under Important Notes: a row + `UiKit::toggle()` on the Settings screen, a `SettingsManager` save/load pair, and a sync line in the page's `refresh*()`.
|
||||
|
||||
### Thread-Safe UI Update from Background Task
|
||||
|
||||
@@ -360,6 +308,7 @@ xTaskCreatePinnedToCore(
|
||||
- **CAN Bus**: GPIO 15 (TX), GPIO 16 (RX) - 500 Kbps, TWAI_MODE_NORMAL, onboard TJA1051 on the terminal block
|
||||
- **UART1**: GPIO 44 (TX), GPIO 43 (RX, unused) - reaches the terminal block only as the RS485 A/B pair (SP3485), 115200 baud. Bench: `485_A` straight into B's IO1 + GND works (verified 2026-09-21)
|
||||
- **USB Serial**: native USB-CDC (`Serial`, 303A:1001). Opening the port with default DTR/RTS resets the board - attach with `pio device monitor -p COM10 --dtr 0 --rts 0 --echo`
|
||||
- **Uploading from a script/pipe on Windows**: set `PYTHONIOENCODING=utf-8` (and `PYTHONUTF8=1`). Otherwise esptool crashes printing its progress bar to a cp1252 pipe *mid-write* and leaves the board frozen until a power cycle (happened 2026-09-27; the bootloader then fell back to the other OTA slot)
|
||||
|
||||
### Display Panel
|
||||
|
||||
@@ -392,7 +341,7 @@ xTaskCreatePinnedToCore(
|
||||
|
||||
- **Screen drift/artifacts**: RGB LCD timing issue - already optimized in `platformio.ini` with high-performance platform packages
|
||||
- **White flash on boot**: Backlight control sequence in setup() minimizes this (lines 1383-1414)
|
||||
- **UI toggles don't match state**: Check `applySavedStatesToUI()` is called in `loop()` - this syncs UI with running services
|
||||
- **UI switches don't match state**: `SettingsScreen::tick()` must run in `loop()` - it re-reads the live state every 250 ms
|
||||
- **WiFi/UART task not responding**: Check FreeRTOS queue creation succeeded (NULL check in setup())
|
||||
- **LVGL crash from background task**: Ensure `lvgl_port_lock()` / `unlock()` wraps ALL LVGL API calls
|
||||
- **Screen flickering**: This was resolved by fixing the proper board configuration and partition table. The key fixes were:
|
||||
@@ -414,6 +363,6 @@ xTaskCreatePinnedToCore(
|
||||
## Important Notes
|
||||
|
||||
- **SquareLine Studio Export**: ALWAYS export UI files to `ui/` directory, NEVER to `src/` (prevents overwriting main.cpp)
|
||||
- **Event Handler Registration**: Event handlers for SquareLine UI elements are registered in `ui_Settings_Screen.c` auto-generated code. When adding new toggles, add event callback registration via `lv_obj_add_event_cb()` and declare handler in `ui_events.h`
|
||||
- **Adding a setting**: add a row to the right page in `settings_screen.cpp` (`makeSettingRow()` + `UiKit::toggle()`), persist it via `SettingsManager`, and sync it in that page's `refresh*()` function
|
||||
- **CAN Bus Integration**: BMW CAN IDs are defined in `automotive_data.h` (all 11-bit standard frames, verified live on the swap bus). The CAN driver runs in `TWAI_MODE_NORMAL` (it ACKs frames; not LISTEN_ONLY). Evidence and confidence labels live in `wiki/pages/can-id-candidates.md`. Never add a second caller of `CANDriver::transmit()` without a design discussion — transmitting on the vehicle bus is a safety decision
|
||||
- **Security**: Password field (`uic_Wifi_Passkey_TB`) is cleared after connection attempt for security (line 1015, 1029)
|
||||
- **Security**: the Wi-Fi password field is cleared when the password page closes; the saved password lives only in NVS and is never logged (the pre-2026-09-27 code printed it on every join)
|
||||
|
||||
Reference in New Issue
Block a user