temp nanopb - JohnHau/mis GitHub Wiki

simple.pb.c

/* Automatically generated nanopb constant definitions / / Generated by nanopb-0.4.8-dev */

#include "simple.pb.h" #if PB_PROTO_HEADER_VERSION != 40 #error Regenerate this file with the current version of nanopb generator. #endif

PB_BIND(SimpleMessage, SimpleMessage, AUTO)

simple.pb.h

/* Automatically generated nanopb header / / Generated by nanopb-0.4.8-dev */

#ifndef PB_SIMPLE_PB_H_INCLUDED #define PB_SIMPLE_PB_H_INCLUDED #include <pb.h>

#if PB_PROTO_HEADER_VERSION != 40 #error Regenerate this file with the current version of nanopb generator. #endif

/* Struct definitions */ typedef struct _SimpleMessage { int32_t lucky_number; } SimpleMessage;

#ifdef __cplusplus extern "C" { #endif

/* Initializer values for message structs */ #define SimpleMessage_init_default {0} #define SimpleMessage_init_zero {0}

/* Field tags (for use in manual encoding/decoding) */ #define SimpleMessage_lucky_number_tag 1

/* Struct field encoding specification for nanopb */ #define SimpleMessage_FIELDLIST(X, a)
X(a, STATIC, REQUIRED, INT32, lucky_number, 1) #define SimpleMessage_CALLBACK NULL #define SimpleMessage_DEFAULT NULL

extern const pb_msgdesc_t SimpleMessage_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define SimpleMessage_fields &SimpleMessage_msg

/* Maximum encoded size of messages (where known) */ #define SimpleMessage_size 11

#ifdef __cplusplus } /* extern "C" */ #endif

#endif

simple.proto

// A very simple protocol definition, consisting of only // one message.

syntax = "proto2";

message SimpleMessage { required int32 lucky_number = 1; }

⚠️ **GitHub.com Fallback** ⚠️