feat: boot-phase OTA, RS485 variant, async melody download, HAL guards

- bootOtaCheck() runs at top of setup() before any task/timer; streams
  firmware to flash on update, reboots, otherwise returns immediately
- New bespoke-rs485-v1 build env + Rs485OutputManager for Waveshare 16CH
  Modbus RTU relay; vesper.hpp renamed vesper-std.hpp, env renamed accordingly
- Player: permanent melodyDownloadTaskFn task; fast path (built-in/SD) before
  async download; uid accepted as alias for pid
- CommunicationRouter: HAS_UART guards throughout so UART transport compiles
  out when Serial2 is claimed by Modbus
- OTAManager: stack 8KB→16KB, pinned to Core 1, HTTPClient recreated per
  retry, download timeout 30s→60s
- FileManager: heap guard before SSL alloc; watchdog log cleanup
- ConfigManager: OTA fallback URLs http (no TLS for firmware servers)
- agnus.hpp: HAS_UART 1 added
- provisioning/nvs_agnus_lab_device.csv added
- Version bumped to v2.0.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 20:48:26 +03:00
co-authored by Claude Sonnet 4.6
parent a4d071d5d5
commit ed1123283b
19 changed files with 871 additions and 72 deletions
+2 -2
View File
@@ -134,8 +134,8 @@ public:
*/
struct UpdateConfig {
String fallbackServerUrls[2] = {
"https://firmware.bellsystems.net", // 🥇 Primary fallback
"https://firmware.bonamin.space" // 🥈 Secondary fallback
"http://firmware.bellsystems.net", // 🥇 Primary fallback
"http://firmware.bonamin.space" // 🥈 Secondary fallback
};
int timeout = 10000; // ⏱️ Universal timeout - OK as is
int retries = 3; // 🔄 Universal retries - OK as is