jazzycamel / micropython-uprotobuf Goto Github PK
View Code? Open in Web Editor NEWA lightweight implementation of Google's Protocol Buffers (protobuf) for micropython
License: MIT License
A lightweight implementation of Google's Protocol Buffers (protobuf) for micropython
License: MIT License
how to use?
Hi,
Great Work!
Can you please provide an example to save binary data (Face Encodings) of different individuals to protobuf in micropython locally.
Thanks
Parsing the meshtastic protocol results in:
...
dict(name='reboot_seconds', type=WireType.Varint, subType=VarintSubType.Int32, fieldType=FieldType.Optional, id=97),
...
however if I try to set this name to 10, it tries to run bytes([776, 137, 0]) which stops because 776 is out of range for a byte.
this encode is supposed to have another byte but I couldn't find an example of how that looks or if it's simply moving the bits that didn't fit left and filling each byte with 8 bits. Closest mention I found was https://developers.google.com/protocol-buffers/docs/proto3#assigning_field_numbers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.