mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 15:59:22 +08:00
a61d228b76
format. It is targeted at 32 bit microcontrollers, but is also fit for other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory constraints.(http://koti.kapsi.fi/jpa/nanopb/) How to use the example: 1. move examples/nanopb to bsp/xxxx/ 2. enable macro RT_USING_NANOPB in rtconfig.h 3. regenerate the project file (scons --target=xxxx) 4. rebuild the project
11 lines
166 B
Protocol Buffer
11 lines
166 B
Protocol Buffer
// A very simple protocol definition, consisting of only
|
|
// one message.
|
|
|
|
message SimpleMessage {
|
|
required int32 lucky_number = 1;
|
|
required bytes name = 2;
|
|
}
|
|
|
|
|
|
|