Skip to content

Move MESH_DEBUG/MESH_PACKET_LOGGING and companion WiFi creds to local config#8

Open
polipl wants to merge 1 commit into
mainfrom
feature/poli-debug-wifi-local-config
Open

Move MESH_DEBUG/MESH_PACKET_LOGGING and companion WiFi creds to local config#8
polipl wants to merge 1 commit into
mainfrom
feature/poli-debug-wifi-local-config

Conversation

@polipl
Copy link
Copy Markdown
Owner

@polipl polipl commented Jun 7, 2026

Summary

  • Every env (repeater/companion/sensor/etc. across heltec_v3, heltec_v4, xiao_s3_wio) now picks up MESH_PACKET_LOGGING=1 / MESH_DEBUG=1 via a new ${poli_debug.build_flags} reference added to each board's base section — replacing ~36 scattered (and partly disabled/"DO NOT ENABLE") inline defines per file
  • Every *_wifi companion env now pulls WIFI_SSID/WIFI_PWD from a new ${poli_wifi.build_flags} section instead of hardcoded credentials committed directly in platformio.ini
  • New [poli_debug] and [poli_wifi] sections are defined empty in the root platformio.ini (mirroring the existing [poli_build] convention) and populated by build_firmware.sh's write_local_ini() into the gitignored platformio.local.ini
  • WIFI_SSID/WIFI_PWD are mirrored from the existing WIFI_SSID_1/WIFI_PWD_1 primary network entries, so no WiFi credentials need to live in tracked files

Test plan

  • pio project config confirms all 58 relevant envs resolve with exactly one MESH_PACKET_LOGGING/MESH_DEBUG define each, and all *_wifi envs (incl. _cloud_ota variants) get exactly one WIFI_SSID/WIFI_PWD pair from [poli_wifi]
  • Build a _cloud_ota and a base _wifi env via build_firmware.sh and confirm the binaries pick up the expected debug/WiFi flags

… config

Every companion_radio/repeater/etc. env now picks up MESH_PACKET_LOGGING=1
and MESH_DEBUG=1 via a new ${poli_debug.build_flags} reference added to each
board's base section, instead of scattered (and partly disabled/commented)
inline defines. Likewise, every *_wifi companion env now pulls its
WIFI_SSID/WIFI_PWD from a new ${poli_wifi.build_flags} section instead of
hardcoded credentials in the tracked platformio.ini files.

Both [poli_debug] and [poli_wifi] are defined empty in the root
platformio.ini (mirroring [poli_build]) and populated by
build_firmware.sh's write_local_ini() into the gitignored
platformio.local.ini — WIFI_SSID/WIFI_PWD are mirrored from the existing
WIFI_SSID_1/WIFI_PWD_1 primary network so no credentials need to live in
tracked files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant