This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 intalled and available.

Use apt to install dependency:

sudo apt install protobuf-compiler

Building and Running

This application can be built as follows:

west build -b qemu_x86 samples/modules/nanopb
west build -t run