Bytes fields shouldn't be any different than other fields. You should still 
be able to get and set the variables as explained in the tutorial 
<https://developers.google.com/protocol-buffers/docs/pythontutorial>.

On Thursday, March 31, 2022 at 12:23:55 AM UTC-7 Renaud Piperade wrote:

> Hello,
> I am trying to use Protobuf between a C99 program (with Nanopb) and 
> python3.9.2 program. The communication take place through a serial port 
> communication (with pty under a Debian machine).
> I have the following message:
>
> syntax = "proto3"
> import "nanopb.proto";
> message My_msg {
>     uint32 time = 1;     
>     bytes data = 4 [(nanopb).max_size = 255]; 
> }
>
> I am facing an issue with the bytes field. Does someone know how to 
> "read", "write" and display the "data" variable on python and C (with an 
> example with this message can help me a lot) ?
> Thank you by advance,
> Renaud
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/b351a3d1-9a45-466c-a3a3-bc26106bb494n%40googlegroups.com.

Reply via email to