Switch the example project to use the new .options file

This commit is contained in:
Petteri Aimonen
2013-07-06 13:01:21 +03:00
parent a1cec46b3e
commit 68dd0171bc
2 changed files with 16 additions and 11 deletions

13
example/fileproto.options Normal file
View File

@@ -0,0 +1,13 @@
# This file defines the nanopb-specific options for the messages defined
# in fileproto.proto.
#
# If you come from high-level programming background, the hardcoded
# maximum lengths may disgust you. However, if your microcontroller only
# has a few kB of ram to begin with, setting reasonable limits for
# filenames is ok.
#
# On the other hand, using the callback interface, it is not necessary
# to set a limit on the number of files in the response.
ListFilesRequest.path max_size:128
FileInfo.name max_size:128