Files
trail-mate/apps/esp_pio
liu weikai 6edfd084f3 refactor(chat): align shared BLE cores and nrf meshtastic routing
- extract Meshtastic and MeshCore phone/business flows into shared core_chat BLE cores with owner hook seams for ESP and nRF backends

- replace nrf-specific lite adapters with board/platform adapters that consume shared cores and shared storage contracts

- extend nrf Meshtastic radio path with packet history dedupe, flooding rebroadcast, route discovery/traceroute responses, routing ACK/error handling, observed relay learning, retransmit queueing, and next-hop persistence

- persist nrf device identity and node metadata more explicitly, including next-hop state and node-id initialization support

- move nrf chat/contact/blob storage further toward InternalFS-backed persistence and update contact/node store behavior accordingly

- wire gat562 protocol/app facade pieces to the concrete nrf stores/adapters and add supporting app time-sync hooks used by platform runtimes

- add owner-hook split files and planning/status docs to document the ongoing alignment with the reference meshtastic-firmware multi-platform structure
2026-03-19 11:19:02 +08:00
..

apps/esp_pio

PlatformIO application shell for the current Arduino-based ESP targets.

Current responsibilities:

  • own the Arduino setup/loop implementation plus startup composition for the active PlatformIO shell
  • own the thin PlatformIO/Arduino loop + startup adapters that assemble board/runtime hooks
  • own the current shared app-catalog composition for the Arduino/PlatformIO product shell
  • own only PlatformIO-side startup / loop / runtime composition, not per-page wrapper implementations
  • consume shared modules/*
  • consume platform/esp/* runtime adapters

Current status:

  • now wired into the active PlatformIO build through the thin src/main.cpp trampoline, with the real Arduino entry living in apps/esp_pio/src/arduino_entry.cpp plus startup and loop runtime
  • now treats the menu shell/profile/runtime, boot overlay, watch face, status shell, and startup/loop skeleton as shared modules/ui_shared code
  • now mainly owns PlatformIO-specific composition: board bring-up order, Arduino loop hooks, runtime bootstrap, and app-catalog feature gating
  • no longer keeps per-page wrapper files under apps/esp_pio; menu entries resolve into shared modules/ui_shared page shells
  • the authoritative PlatformIO build entry remains root platformio.ini, but the app-shell/page boundary is now settled