Nanopb sample
Overview
A simple protocol buffer sample using Nanopb for serializing structured data to platform independent raw buffers or streams.
Requirements
Nanopb uses the protocol buffer compiler to generate source and header files,
make sure the protoc
executable is installed and available.
Use apt
to install dependency:
sudo apt install protobuf-compiler
Use brew
to install dependency:
brew install protobuf
Use choco
to install dependency:
choco install protoc
Additionally Nanopb is an optional module and needs to be added explicitly to the workspace:
west config manifest.project-filter -- +nanopb
west update
Building and Running
This application can be built as follows:
west build -b qemu_x86 samples/modules/nanopb
west build -t run