3 // This defines protocol for a simple server that lists files.
5 // If you come from high-level programming background, the hardcoded
6 // maximum lengths may disgust you. However, if your microcontroller only
7 // has a few kB of ram to begin with, setting reasonable limits for
10 // On the other hand, using the callback interface, it is not necessary
11 // to set a limit on the number of files in the response.
13 message ListFilesRequest {
14 optional string path = 1 [default = "/", (nanopb).max_size = 128];
18 required uint64 inode = 1;
19 required string name = 2 [(nanopb).max_size = 128];
22 message ListFilesResponse {
23 optional bool path_error = 1 [default = false];
24 repeated FileInfo file = 2;