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
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