Files
maze e2b69d92fd
Some checks failed
Run tests / test (1.25) (push) Failing after 1m1s
Run tests / test (stable) (push) Failing after 1m0s
meshtastic: support
2026-03-06 09:24:56 +01:00
..
2026-03-06 09:24:56 +01:00
2026-03-06 09:24:56 +01:00
2026-03-06 09:24:56 +01:00
2026-03-06 09:24:56 +01:00

Meshtastic Protocol Buffers Generation

This internal package manages the generation of Go types from the official Meshtastic protocol buffer definitions.

Upstream Source

The protobuf definitions are included as a git submodule at:

protocol/meshtastic/internal/pbgen/upstream

Tracked repository: https://github.com/meshtastic/protobufs.git

Generating Go Code

To regenerate the Go protobuf types after updating the submodule:

# Update the submodule to latest (optional)
git submodule update --remote protocol/meshtastic/internal/pbgen/upstream

# Regenerate Go code
go generate ./protocol/meshtastic/internal/pbgen

Requirements

  • protoc (Protocol Buffers compiler)
  • protoc-gen-go (install via go install google.golang.org/protobuf/cmd/protoc-gen-go@latest)

Generated Package

Generated Go types are placed in:

protocol/meshtastic/pb/

Import path:

import meshtasticpb "git.maze.io/go/ham/protocol/meshtastic/pb"

All Meshtastic protocol buffer messages (Position, User, Data, etc.) are available from this package.