Petteri Aimonen
c85c214474
nanopb.mk: Make NANOPB_DIR relative if nanopb.mk is included with relative path.
...
This simplifies handling of space characters in paths.
2020-06-19 13:50:14 +03:00
Petteri Aimonen
20f94940eb
Add option for including extra files from .pb.h
2019-12-19 11:21:58 +02:00
Petteri Aimonen
511b708290
Add PB_CONVERT_DOUBLE_FLOAT setting to convert doubles on AVR.
...
This is easier to use than the old method of separate conversion functions.
More importantly, it should allow running the same tests on AVR target.
2019-12-16 12:14:16 +02:00
Petteri Aimonen
a7637dc7d9
Update examples/simple docs
2019-11-30 06:50:33 +02:00
Petteri Aimonen
4f4213c541
network_server example: Detect count=0 in read_callback() ( #421 )
...
Previously the example code would falsely detect EOF condition if
called with count = 0.
2019-08-22 11:25:41 +03:00
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
0fe1f69ea2
examples/using_union_messages: Access fields through pb_common.c mechanisms.
2019-01-25 18:56:34 +02:00
Petteri Aimonen
5866b34d7a
examples/simple: fix warning about printf format
2018-01-06 13:52:41 +02:00
Petteri Aimonen
1291daddf6
Update using_union_messages readme
2017-09-23 13:37:48 +03: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
Kevin Fitch
5541fbe9fa
Add an example using the new RELPATH option.
2017-07-22 16:32:54 -04:00
Kyle Manna
6cedf928c8
examples: cmake_simple: Use auto discovered path
...
* No need to specify the src path and the module path. Let cmake do it.
2015-10-15 13:57:37 -07:00
Petteri Aimonen
5e4356ef4b
Add initialization to examples/simple
2015-09-24 20:32:54 +03:00
Petteri Aimonen
b03be4fa4d
Add syntax specification to .proto files (issue #167 )
...
Eliminates a warning on protoc 3.0.
2015-09-20 14:29:39 +03:00
Petteri Aimonen
b836ac29dd
Lower required CMake version in example
2015-02-13 18:57:46 +02:00
Petteri Aimonen
93364463ac
Update cmake_simple example readme
2015-02-13 18:42:46 +02:00
Oliver Lee
7c00b90910
Add simple example built with CMake
2015-02-13 18:42:46 +02:00
Petteri Aimonen
8a95311b51
Add pb_common.c to examples
2014-08-26 18:05:10 +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
4546bb92dc
Fix Makefiles for the examples
...
The default rules for make were being selected before our own rules
and the .pb.c was not being built.
2014-01-01 11:20:54 +02:00
Petteri Aimonen
6e08773153
README updates
2013-12-29 20:26:58 +02:00
Petteri Aimonen
05e2dc20f3
Actually no, it was a portability hassle
2013-12-29 20:26:57 +02:00
Petteri Aimonen
c61660b3ea
Makefile tuning
2013-12-29 20:26:57 +02:00
Petteri Aimonen
45c1a32e50
Rework the Makefiles to be compatible with binary packages.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
ef31774cd9
Moving files around
...
Renamed READMEs to README.txt to be more friendly for Windows users.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
73142ba082
Add a new very simple example
2013-09-13 13:35:25 +03:00
Petteri Aimonen
f47410ea4b
Move examples into subfolders, add READMEs
2013-09-13 12:59:31 +03:00