Skip to content

Nanopb - Protocol Buffers for Embedded Systems

lbuild module: modm:nanopb

Nanopb is a small code-size Protocol Buffers (protobuf) implementation in ansi C. It is especially suitable for use in microcontrollers, but fits any memory restricted system.

See https://github.com/nanopb/nanopb.

Build System Integration

You can optionally point the build system to multiple protofiles using a comma-separated list of paths in the modm:nanopb:source option. You can specify the output location using the modm:nanopb:path option. See the modm:build submodules for further details.

Currently only with SCons support

Only the modm:build:scons module currently supports this feature.

Options

path

Path to the generated messages folder

Default: generated/nanopb
Inputs: [Path]

sources

Comma-separated list of paths to protofiles.

Default: {}
Inputs: [Path]