meshtastic: support
Some checks failed
Run tests / test (1.25) (push) Failing after 1m1s
Run tests / test (stable) (push) Failing after 1m0s

This commit is contained in:
2026-03-06 09:24:56 +01:00
parent e6bda98b92
commit e2b69d92fd
39 changed files with 26113 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
# Meshtastic Protocol Buffers Generation
This internal package manages the generation of Go types from the [official Meshtastic protocol buffer definitions](https://github.com/meshtastic/protobufs).
## 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:
```bash
# 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:
```go
import meshtasticpb "git.maze.io/go/ham/protocol/meshtastic/pb"
```
All Meshtastic protocol buffer messages (Position, User, Data, etc.) are available from this package.