Skip to content

Conversation

@andrewdavidmackenzie
Copy link
Contributor

Summary
Clarify the use of the "to" field of MeshPacket struct, and how to use it to determine if a packet was sent to a node or to a channel

Related Issues
Links (e.g. closes #123).

Proposed Changes

  • the doc comment on "to" field

Checklist

  • Tests pass locally
  • Documentation updated if needed

pub from: u32,
///
/// The (immediate) destination for this packet
/// The (immediate) destination for this packet.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right place for it. As the name suggests, this is a generated file. This will get overwritten when we update protobuf and regenerate this file.

Please post a PR to the protobuf repository:
https://github.com/meshtastic/protobufs/blob/7654db2e2d1834aebde40090a9b74162ad1048ae/meshtastic/mesh.proto#L1373

@andrewdavidmackenzie andrewdavidmackenzie deleted the docs-to-field branch November 14, 2025 11:06
@andrewdavidmackenzie
Copy link
Contributor Author

Done, here: meshtastic/protobufs#811

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