Protobuf files for EdgePi RPC
npm install @edgepi-cloud/rpc-protobuf
pip install edgepi-rpc-protobuf
- Install protobuf compiler (protoc) and install a protobuf runtime library for a supported language. Visit the official repo for steps.
- Compile with the following command
protoc -I=. --<language>_out=. <proto_file_path>
In the command line, we trigger the protocol compiler using three arguments:
- -I: Specifies the directory in which we look for necessary dependencies (we utilize "." which represents the present directory).
- --python_out: Indicates the destination for generating a Python integration class (once again, we use "." for the current directory).
- The final parameter without a name designates the .proto file that will undergo compilation.