Commit Graph
4 Commits
Author SHA1 Message Date
Petteri Aimonen 87319f6a76 Allow specifying a per-message callback.
This allows callbacks to be combined with oneofs and pointer fields (#175)
2019-01-25 18:56:34 +02:00
Petteri Aimonen e21e78c67c Add pb_en/decode_nullterminated() (part of #278)
Nanopb has traditionally supported messages to be terminated with a zero tag.
However, this is not really standard protobuf behaviour, so it makes sense
to separate it into a different function. Because it is a breaking change,
it will happen in 0.4.0 release. But I add the functions here early so that
new code can start using them now.

Also changed the network_server example to use en/decode_delimited(), which
is the more common protobuf method of simple message framing.
2017-09-16 13:40:57 +03:00
Petteri Aimonen eaa3c7b157 Cleanup and comment the code of network_server example.
Update issue 123
Status: FixedInGit
2014-07-20 14:44:41 +03:00
Petteri Aimonen f47410ea4b Move examples into subfolders, add READMEs 2013-09-13 12:59:31 +03:00