This application is based on Nanopb example called Simple. It contains source and header file generated with Nanopb. The header file defines one structure (message) with one int field called lucky_number. The application shows how to use basic Nanopb API and configures the SPI to send the message and receive it on the other device. Two devices are required for this to work: