Skip to content

Add region transport code support in README and decoder#7

Closed
agessaman wants to merge 14 commits intomichaelhart:mainfrom
agessaman:feat-region-transport
Closed

Add region transport code support in README and decoder#7
agessaman wants to merge 14 commits intomichaelhart:mainfrom
agessaman:feat-region-transport

Conversation

@agessaman
Copy link
Copy Markdown
Contributor

  • Documented the use of regions and transport codes in packet handling within README.md.
  • Updated packet decoder to properly extract and describe region transport codes in the packet structure.
  • Exported new functions related to region transport code calculations in index.ts.

michaelhart and others added 14 commits September 21, 2025 15:16
…extMessage

- Standardize hex output to uppercase and add comprehensive payload decoders
- Create centralized hex utilities (byteToHex, bytesToHex, numberToHex, hexToBytes)
- Replace all manual hex conversion with standardized uppercase utilities
- Update all existing decoders (Advert, Trace, GroupText) to use hex utilities
- Add comprehensive unit tests validating all decoded field values
- Export hex utilities from main index for external use
- Remove duplicate hex conversion methods from crypto and decoder classes
- Add segment analysis support to all payload types:
  - TracePayloadDecoder: trace tag, auth code, flags, path hashes
  - ResponsePayloadDecoder: destination hash, source hash, cipher MAC, ciphertext
  - GroupTextPayloadDecoder: channel hash, cipher MAC, ciphertext
  - AckPayloadDecoder: checksum, additional data
  - AdvertPayloadDecoder: public key, timestamp, signature, app flags, location, node name
- Extract enum name utilities into separate module
- Add MeshCoreDecoder as shorter alias for MeshCorePacketDecoder
- Add Utils namespace combining all utility functions for cleaner imports
- Export getRouteTypeName, getPayloadTypeName, getPayloadVersionName, getDeviceRoleName, getRequestTypeName
- Remove unused getPayloadSegments method and private enum name methods
- Add payload segment analysis for detailed packet structure breakdown
- Implement payload decoders for Request, Response, AnonRequest, Ack, Path, TextMessage
- Version bump to 0.1.2
- Documented the use of regions and transport codes in packet handling within README.md.
- Updated packet decoder to properly extract and describe region transport codes in the packet structure.
- Exported new functions related to region transport code calculations in index.ts.
@michaelhart michaelhart changed the base branch from dev to main March 24, 2026 04:05
@michaelhart
Copy link
Copy Markdown
Owner

Whelp I tried to change the base from dev to main and github closed it :( and apparently I can't reopen it either? :/

@michaelhart
Copy link
Copy Markdown
Owner

I got this added in 819242d, thank you @agessaman! 🙏

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.

2 participants