Protobuf data encoding

it's working after getting some guidance from Ignition support team :grinning:

  1. Define the Protobuf schema that describes the structure of the data you want to serialize/deserialize. This schema file (.proto) defines the types and structure of the messages.

  2. Generate Java code from the Protobuf schema using a Protobuf compiler (protoc) to generate Java classes from the .proto schema file.

  • The protoc compiler reads the .proto file and outputs Java source files corresponding to the schema.
  1. Compile the generated Java code using a Java compiler (javac).
  2. Use the generated Java code by adding the compiled Java classes & JAR file to Ignition, then importing these classes within your script.
  3. Now serialize/deserialize Protobuf messages using the generated code in your script.
1 Like