How to extract message id directly from protobuff

Hi, I am writing a small " router " application for meshtastic mqtt messages. I need to extract the message ID from the raw message that the nodes send to the mqtt broker. However, I would like to not use the meshtastic library or any protobuff (I am writing my application in go)

There is some way to extract the message ID directly from the raw data without using protobuff libraries?

I tried to search on the docs but it appears that there isn’t any indication on how the data are encoded.

I also tried to look at some data with a hex editor and I wasn’t able to find the message id.

Can anyone help me?

Best regards, Lorenzo

The only way is to use protobuff libraries, so is not possible. How to extract message id directly from protobuff? · Issue #455 · meshtastic/protobufs · GitHub