aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/examples/network_server/fileproto.options
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nanopb/examples/network_server/fileproto.options')
-rw-r--r--third_party/nanopb/examples/network_server/fileproto.options13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/nanopb/examples/network_server/fileproto.options b/third_party/nanopb/examples/network_server/fileproto.options
new file mode 100644
index 0000000000..29a2ab0e4a
--- /dev/null
+++ b/third_party/nanopb/examples/network_server/fileproto.options
@@ -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