Skip to content

Retest requested: network / MQTT / OTA refactor in 1.1.2-beta-4a1e694 #57

@21cncstudio

Description

@21cncstudio

Please retest the latest beta firmware that includes the network/web runtime refactor originally introduced in commit 5f4e9d8 (Refactor network and web runtime architecture).

Recommended test build:
project_aura_1.1.2-beta-bd91df0_ota_firmware.bin

This refactor changed the internal architecture of networking, MQTT, web runtime handling, OTA flow, and cross-thread interaction between the web layer, UI layer, and network task.

What changed in this refactor, in short:

  • Introduced a dedicated NetworkPlane to separate network-side processing from the main/UI flow.
  • Added NetworkCommandQueue to route network actions through a single task boundary.
  • Added structured runtime state layers such as ConnectivityRuntime, MqttRuntimeState, WebRuntimeState, and ChartsRuntimeState.
  • Reworked NetworkManager and MqttManager to fit the new ownership and polling model.
  • Introduced WebUiBridge and deferred-action state to support web-to-UI operations through an explicit bridge instead of direct coupling.
  • Split the old monolithic web implementation into smaller focused modules:
    • transport
    • handlers
    • pages
    • API utilities
    • response/query/multipart helpers
    • stream policy/state/writer
  • Added dedicated web modules for:
    • Wi-Fi
    • MQTT
    • OTA
    • settings
    • theme
    • DAC
    • dashboard
    • charts
    • diagnostics
    • system/state/events APIs
  • Added dedicated OTA state/handler flow and deferred restart support.
  • Added an esp_http_server transport integration layer for the web runtime.
  • Updated application wiring in main, AppInit, UiController, and related runtime/controller code to use the new architecture.
  • Expanded test coverage with new native tests for web utilities, handlers, stream logic, OTA state, Wi-Fi helpers, UI bridge adapters, and related modules.

This is a foundational refactor, so older network/MQTT/OTA/web issues should be retested against the latest beta instead of assuming previous behavior still applies.

Please retest:

  • device boot with saved Wi-Fi credentials
  • AP portal behavior
  • Wi-Fi scan / connect / save flow
  • MQTT connect / disconnect / reconnect flow
  • dashboard and state updates in the web UI
  • settings/theme/DAC changes from the web UI
  • OTA upload and reboot flow
  • restart actions triggered from the web UI

If you report an issue, please include:

  • firmware version
  • exact reproduction steps
  • whether it is consistent or intermittent
  • serial log, if available

Note:

  • hardware-specific GT911 / I2C instability is tracked separately and is not the main target of this refactor retest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions