Skip to content

v0.6.1

Pre-release
Pre-release

Choose a tag to compare

@ilyakruchinin ilyakruchinin released this 01 Aug 16:00
3b6effa

Changes since v0.6.0

WiFi Configuration UX

  • Configured SSIDs now visible on page load. The /api/status endpoint now returns ssids (array of SSID strings) and has_pass (array of booleans) so the web UI can display all saved WiFi networks immediately — no scan required. Passwords are never sent to the frontend.
  • Pre-populated networks use text-input mode. Saved SSIDs appear as editable text fields instead of empty dropdowns, making them visible as soon as the settings page loads.
  • Cache invalidation after save. save_post_handler now sets s_status_cache.cfg_valid = false after saving WiFi config, so the next /api/status call returns the updated SSID list without waiting for the 2-minute cache TTL.

Display — New "Backlight always off" Mode

  • Added LCD_THERAPY_ALWAYS_OFF mode (battery-friendly). A third display mode option complements the existing "Show live graph" and "Backlight off":
    • Show live graph — backlight always on (unchanged)
    • Backlight off — backlight off during therapy, on otherwise (unchanged)
    • Backlight always off (battery) — backlight fully off in all states except during boot and SoftAP setup mode
  • Centralized backlight policy. New bsp_display_apply_backlight_policy() function evaluates the current LCD mode and therapy state to set the correct backlight on/off. Called after boot completes, when entering SoftAP, and when the mode is changed via the web UI.
  • SoftAP force-on override. A s_backlight_force_on flag ensures the backlight stays on during SoftAP/portal mode regardless of the selected display mode, so users can always interact with the setup screen.
  • Immediate effect on save. Backlight policy is evaluated after the new mode is persisted to NVS (not before), so selecting "Backlight always off" turns the LCD off immediately without waiting for therapy to start.
  • Therapy stop respects always-off. When therapy ends, LCD_THERAPY_OFF restores the backlight but LCD_THERAPY_ALWAYS_OFF keeps it off.