A simple protocol buffer sample using Nanopb for serializing structured data to platform independent raw buffers or streams.
Nanopb uses the protocol buffer compiler to generate source and header files,
make sure the
protoc executable is installed and available.
apt to install dependency:
sudo apt install protobuf-compiler
brew to install dependency:
brew install protobuf
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