Skip to content

add ElegantOTA and fix LittleFS boot mount#401

Merged
nk25719 merged 1 commit intomainfrom
feature/379-firmware-factorytest-add-elegantota-and-littlefs
Mar 11, 2026
Merged

add ElegantOTA and fix LittleFS boot mount#401
nk25719 merged 1 commit intomainfrom
feature/379-firmware-factorytest-add-elegantota-and-littlefs

Conversation

@Yukti007
Copy link
Copy Markdown
Collaborator

@Yukti007 Yukti007 commented Mar 10, 2026

Links

What & Why

  • LittleFS was already in the code but only activated during test A. Moved mount to setup() so it is ready at boot — ElegantOTA requires it to be available immediately on startup.
  • ElegantOTA was completely missing from the codebase. Added the three required libraries (AsyncTCP, ESPAsyncWebServer, ElegantOTA) and set up a web server instance.
  • Added startOTAServerIfNeeded() helper that starts the OTA server automatically once Wi-Fi is up, triggered at the end of both Wi-Fi AP (test 7) and Wi-Fi STA (test 8).
  • Added new test entry E (ElegantOTA) for operator browser verification, consistent with the existing test pattern.
  • Added ElegantOTA.loop() to loop() to keep OTA file transfers running.

Validation / How to Verify

  1. Flash the updated firmware onto the board.
  2. Install the three required libraries via Arduino Library Manager: AsyncTCP, ESPAsyncWebServer, ElegantOTA.
  3. Open Serial Monitor at 115200 baud and confirm LittleFS mounted OK appears on boot.
  4. Run test 7 (Wi-Fi AP) or test 8 (Wi-Fi STA) and confirm ElegantOTA server started appears in the serial output.
  5. Run test E and open http://<IP>/update in a browser — confirm the ElegantOTA upload page loads and mark PASS.
  6. Run P (Run All) and confirm test E appears in the summary with a result.

Checklist

  • Only related changes : FactoryTest_wMenu.ino
  • Folder structure respected, work directory : Firmware/factoryTest/FactoryTest_wMenu/FactoryTest_wMenu.ino

@Yukti007 Yukti007 linked an issue Mar 10, 2026 that may be closed by this pull request
@nk25719 nk25719 merged commit d257d70 into main Mar 11, 2026
@nk25719 nk25719 deleted the feature/379-firmware-factorytest-add-elegantota-and-littlefs branch March 11, 2026 15:32
@nk25719 nk25719 restored the feature/379-firmware-factorytest-add-elegantota-and-littlefs branch March 11, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firmware, factoryTest, Add ElegantOTA and LittleFS

2 participants