Is nanopb suitable to encode/decode data written/read from external memory?

157 views
Skip to first unread message

Carlos Diaz

unread,
Aug 6, 2018, 6:20:02 PM8/6/18
to nanopb
Hi,

I'm fairly new with protocol buffers, last weekend i did my first toy app using nanopb
on a microcontroller and protobuf in a PC application, nanopb is very easy to use
once you get the idea :).

My question:
Being communication between devices the principal use case for protocol buffers,
can i use it to encode data into a message/buffer, store it in a external memory
(EEPROM in my case) and then read the same message/buffer and decode it?

Kind regards,
Carlos

Petteri Aimonen

unread,
Aug 7, 2018, 1:18:08 AM8/7/18
to nan...@googlegroups.com
Hi,

> Being communication between devices the principal use case for
> protocol buffers, can i use it to encode data into a message/buffer,
> store it in a external memory (EEPROM in my case) and then read the
> same message/buffer and decode it?

Yeah, protobuf works well for that also, to store configuration or other
data on a memory chip.

--
Petteri

Carlos Diaz

unread,
Aug 7, 2018, 10:18:33 AM8/7/18
to nanopb
> Yeah, protobuf works well for that also, to store configuration or other data on a memory chip.

Hi, thanks for the tip.

Ii will ask for help if i got stuck with something (the only thing i don't fully understand are the oneof's).

Carlos

Reply all
Reply to author
Forward
0 new messages