What is Nostr?
Dr. Hax
npub16v8…eqha
2024-08-30 21:37:05

Dr. Hax on Nostr: #Meshtastic folks, I need your help! How do I take the bytes off the wire and decode ...

#Meshtastic folks, I need your help! How do I take the bytes off the wire and decode it into a Python class?

I'm reading in "raw protobufs" (according to the docs) from MQTT, which gives me a byte string. The ParseFromString methods don't take a bytes object, they take a String.

I see that if I can get the bytes converted into a google._upb._message.Message object, there's a meshtastic.util.message_to_json() that will probably guve me what I'm looking for.

#AskNostr #GrowNostr #programming #development
Author Public Key
npub16v82nr4xt62nlydtj0mtxr49r6enc5r0sl2f7cq2zwdw7q92j5gs8meqha