Difference between revisions of "Protobuf notes"

From Wiki at Neela Nurseries
Jump to: navigation, search
m
m
Line 1: Line 1:
 
+
Protobuf references, somewhat arbitrary starting point yet introduces some key topics of Protobuf standard and use cases:
  
 
*  https://www.crankuptheamps.com/blog/posts/2017/10/12/protobuf-battle-of-the-syntaxes/
 
*  https://www.crankuptheamps.com/blog/posts/2017/10/12/protobuf-battle-of-the-syntaxes/
Line 6: Line 6:
 
*  https://developers.google.com/protocol-buffers/docs/proto
 
*  https://developers.google.com/protocol-buffers/docs/proto
 
*  https://spline.de/talks/protobuf.pdf
 
*  https://spline.de/talks/protobuf.pdf
 +
 +
JSON supported data types:
 +
<ul>
 +
*  https://www.w3schools.com/js/js_json_datatypes.asp
 +
<.ul>
 +
 +
 +
First Protobuf .proto file, compiles using `protoc-c`, part of a package available with Ubuntu 20.04:
  
 
<pre>
 
<pre>

Revision as of 15:24, 27 December 2021

Protobuf references, somewhat arbitrary starting point yet introduces some key topics of Protobuf standard and use cases:

JSON supported data types:

    <.ul> First Protobuf .proto file, compiles using `protoc-c`, part of a package available with Ubuntu 20.04:
    // syntax = "proto3";
    syntax = "proto2";
    
    // Notes:
    // $ protoc-c --c_out=. ./first.proto
    
    message sensorUpdates {
      required int32 message_id = 1;
      optional float vrms = 2;
    }