Skip to content

Comments

docs: correct stats binary frame lengths and subtype error handling#1814

Open
robekl wants to merge 1 commit intomeshcore-dev:devfrom
robekl:docs_update_stats_binary_frames
Open

docs: correct stats binary frame lengths and subtype error handling#1814
robekl wants to merge 1 commit intomeshcore-dev:devfrom
robekl:docs_update_stats_binary_frames

Conversation

@robekl
Copy link

@robekl robekl commented Feb 24, 2026

Summary

Targeted fixes in docs/stats_binary_frames.md to match current CMD_GET_STATS binary framing.

Changes

  • Corrected STATS_TYPE_PACKETS frame size to 30 bytes in current firmware.
  • Documented recv_errors as present in current packet-stats response payload.
  • Updated Python and TypeScript parsing examples to require/parse 30-byte packet-stats frame.
  • Added unsupported subtype error behavior:
    • RESP_CODE_ERR + ERR_CODE_ILLEGAL_ARG.

Implementation References

  • examples/companion_radio/MyMesh.cpp
    • CMD_GET_STATS, STATS_TYPE_CORE, STATS_TYPE_RADIO, STATS_TYPE_PACKETS
    • RESP_CODE_STATS
    • MyMesh::handleCmdFrame stats branch
    • MyMesh::writeErrFrame for invalid subtype path

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