Using nanopb and protobuf for serialisation/deserialisation together in applications

1k views Asked by At

Is it possible to have two applications App-1 and App-2, one runs on OS-1 another on OS-2. App-1 serialises/deserialises data with nanopb and communicates with App-2. App-2 serialises/deserialises data with google protobuf and communicates with App-1.

1

There are 1 answers

4
jpa On

Yes. That's a major point of protobuf, being able to communicate with implementations in different languages. All protobuf libraries should be compatible with each other.

The specific case of nanopb vs. Google's C++ protobuf library is checked by nanopb alltypes test case, and the binary output is byte-for-byte equal for the two libraries.