Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract message id directly from protobuff? #455

Closed
lollo03 opened this issue Feb 28, 2024 · 5 comments
Closed

How to extract message id directly from protobuff? #455

lollo03 opened this issue Feb 28, 2024 · 5 comments

Comments

@lollo03
Copy link

lollo03 commented Feb 28, 2024

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

@garthvh
Copy link
Member

garthvh commented Feb 28, 2024

There is not

@garthvh
Copy link
Member

garthvh commented Feb 28, 2024

Google makes protobufs, there is a good go library.

@garthvh garthvh closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
@lollo03
Copy link
Author

lollo03 commented Feb 28, 2024

Thank you for your answer!

@geeksville
Copy link
Member

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/how-to-extract-message-id-directly-from-protobuff/10512/2

@crypto-smoke
Copy link

We've done some work that might make this easier for you https://github.com/meshnet-gophers/meshtastic-go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants