Skip to content

feat: parse DeviceInfo v3+ fields and add setPathHashMode - #31

Open
rinchen wants to merge 1 commit into
meshcore-dev:masterfrom
rinchen:feat/deviceinfo-v3-path-hash-mode
Open

feat: parse DeviceInfo v3+ fields and add setPathHashMode#31
rinchen wants to merge 1 commit into
meshcore-dev:masterfrom
rinchen:feat/deviceinfo-v3-path-hash-mode

Conversation

@rinchen

@rinchen rinchen commented Jul 19, 2026

Copy link
Copy Markdown

Summary

  • Parse companion DeviceInfo v3+ layout: fixed 40-byte manufacturerModel, optional 20-byte firmwareVersion, clientRepeat, and pathHashMode.
  • Add CommandCodes.SetPathHashMode (61) plus sendCommandSetPathHashMode / setPathHashMode for companion_radio v1.14+.

Context

Colorado-Mesh/mesh-client currently carries this as a pnpm patch against @liamcottle/meshcore.js@1.13.0. Newer companion firmware appends fields after the legacy DeviceInfo tail; reading the remainder as a single string truncates/misparses those fields.

Test plan

  • Query DeviceInfo on companion firmware that includes firmwareVersion / pathHashMode and confirm fields populate
  • Call setPathHashMode(mode) and confirm Ok response on companion_radio v1.14+
  • Older companions without the trailing fields still emit DeviceInfo without throwing

Companion radio DeviceInfo (v3+) includes fixed-width manufacturerModel,
optional firmwareVersion string, clientRepeat, and pathHashMode after the
build date. Also adds CMD_SET_PATH_HASH_MODE (61) for companion_radio v1.14+.

Carried as a pnpm patch in Colorado-Mesh/mesh-client.
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