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)
This feature implements persistent storage for all incoming messages, RX log entries, and contacts with configurable retention periods. The system uses a dual-layer architecture to balance real-time UI performance with comprehensive data retention.