Commit Graph

12 Commits

Author SHA1 Message Date
Daniel Pupius
607ae2b7ed Separate decoding from formatting for Meshtastic packets
- Added DecodedPacket struct to simplify message hierarchy
- Implemented separate decoding and formatting functions for each message type
- Decoder extracts all relevant fields into a simplified structure
- Formatters now operate directly on the decoded message types
- Improved error handling during decoding and parsing
- Added type-safety via interfaces for proper packet handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 20:48:12 -07:00
Daniel Pupius
866f3dc0f2 Add specialized decoders for Meshtastic message types
- Implemented decoders for telemetry, position, node info and waypoint data
- Refactored ServiceEnvelope decoder to use specialized formatters
- Added proper indentation for nested output formatting
- Improved error messages for failed decryption attempts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-18 20:33:47 -07:00
Daniel Pupius
cd648508c1 Beginning of message decryption 2025-04-18 18:40:30 -07:00
Daniel Pupius
b9767a3a7f Move key management functions to separate file 2025-04-18 18:05:24 -07:00
Daniel Pupius
044e229ab8 Implement channel-based encryption/decryption using XOR and AES 2025-04-18 17:58:24 -07:00
Daniel Pupius
5ea6dd3ab8 Enhance ServiceEnvelope formatter to display encryption info and detailed MeshPacket metadata 2025-04-18 17:49:23 -07:00
Daniel Pupius
93c0e9e94f Refactor decoder to use protocol buffers directly for ServiceEnvelope decoding 2025-04-18 17:48:21 -07:00
Daniel Pupius
cd7d469af1 Update decoder to handle ServiceEnvelope for encoded packets and improve format handling 2025-04-18 16:45:48 -07:00
Daniel Pupius
76f00b9a11 Update decoder to handle multi-part region paths in MQTT topics 2025-04-18 16:31:57 -07:00
Daniel Pupius
5537556d22 Update decoder to match correct Meshtastic MQTT topic structure 2025-04-18 16:28:09 -07:00
Daniel Pupius
c6013d1038 Improve packet decoding with more robust type detection and debug information 2025-04-18 16:21:37 -07:00
Daniel Pupius
af958ff295 Add protocol buffer generation and packet decoder 2025-04-18 16:13:41 -07:00