mirror of
https://github.com/pe1hvh/meshcore-gui.git
synced 2026-05-03 03:52:31 +02:00
Add pp() and debug_data() helpers to config.py for readable debug output.
Dicts and lists are now formatted as indented JSON instead of single-line
repr() dumps, making payload inspection in logs much easier.
Changed files:
- config.py: added pp(), debug_data(), json import
- ble/worker.py: converted 5 payload dumps to use pp()/debug_data()
Usage in any module:
debug_print(f"payload={pp(r.payload)}")
debug_data("get_contacts result", r.payload)
16 KiB
16 KiB