Itron LCE research protocol on July 12, 2017. The protocol is based on Protocol Buffers developed by Google.
Dependents: ProtocBufTest Borsch
Diff: source/sample.pb.c
- Revision:
- 0:1139a294684a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/sample.pb.c Wed Jul 12 23:10:01 2017 +0000 @@ -0,0 +1,59 @@ +/* Automatically generated nanopb constant definitions */ +/* Generated by nanopb-0.3.8 at Wed Jul 12 11:04:33 2017. */ + +#include "sample.pb.h" + +/* @@protoc_insertion_point(includes) */ +#if PB_PROTO_HEADER_VERSION != 30 +#error Regenerate this file with the current version of nanopb generator. +#endif + + + +const pb_field_t protocol_Sample_fields[4] = { + PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, protocol_Sample, takenDT, takenDT, &google_protobuf_Timestamp_fields), + PB_FIELD( 2, UINT32 , SINGULAR, STATIC , OTHER, protocol_Sample, alarm, takenDT, 0), + PB_FIELD( 10, BYTES , SINGULAR, CALLBACK, OTHER, protocol_Sample, Payload, alarm, 0), + PB_LAST_FIELD +}; + +const pb_field_t protocol_SampleBatch_fields[5] = { + PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, protocol_SampleBatch, sn, sn, 0), + PB_FIELD( 2, UINT32 , SINGULAR, STATIC , OTHER, protocol_SampleBatch, dataType, sn, 0), + PB_FIELD( 3, UINT32 , SINGULAR, STATIC , OTHER, protocol_SampleBatch, intervalLenghtInSeconds, dataType, 0), + PB_FIELD( 10, MESSAGE , REPEATED, CALLBACK, OTHER, protocol_SampleBatch, items, intervalLenghtInSeconds, &protocol_Sample_fields), + PB_LAST_FIELD +}; + +const pb_field_t protocol_SecureSampleBatch_fields[3] = { + PB_FIELD( 1, BYTES , SINGULAR, CALLBACK, FIRST, protocol_SecureSampleBatch, signature, signature, 0), + PB_FIELD( 2, BYTES , SINGULAR, CALLBACK, OTHER, protocol_SecureSampleBatch, content, signature, 0), + PB_LAST_FIELD +}; + + +/* Check that field information fits in pb_field_t */ +#if !defined(PB_FIELD_32BIT) +/* If you get an error here, it means that you need to define PB_FIELD_32BIT + * compile-time option. You can do that in pb.h or on compiler command line. + * + * The reason you need to do this is that some of your messages contain tag + * numbers or field sizes that are larger than what can fit in 8 or 16 bit + * field descriptors. + */ +PB_STATIC_ASSERT((pb_membersize(protocol_Sample, takenDT) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_protocol_Sample_protocol_SampleBatch_protocol_SecureSampleBatch) +#endif + +#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) +/* If you get an error here, it means that you need to define PB_FIELD_16BIT + * compile-time option. You can do that in pb.h or on compiler command line. + * + * The reason you need to do this is that some of your messages contain tag + * numbers or field sizes that are larger than what can fit in the default + * 8 bit descriptors. + */ +PB_STATIC_ASSERT((pb_membersize(protocol_Sample, takenDT) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_protocol_Sample_protocol_SampleBatch_protocol_SecureSampleBatch) +#endif + + +/* @@protoc_insertion_point(eof) */