-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy pathupload.proto
53 lines (47 loc) · 2.05 KB
/
upload.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This file is part of arduino-cli.
//
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
//
// This software is released under the GNU General Public License version 3,
// which covers the main part of arduino-cli.
// The terms of this license can be found at:
// https://www.gnu.org/licenses/gpl-3.0.en.html
//
// You can be released from the requirements of the above licenses by purchasing
// a commercial license. Buying such a license is mandatory if you want to
// modify or otherwise use the software for commercial activities involving the
// Arduino software without disclosing the source code of your own applications.
// To purchase a commercial license, send an email to [email protected].
syntax = "proto3";
package cc.arduino.cli.commands;
option go_package = "github.com/arduino/arduino-cli/rpc/commands";
import "commands/common.proto";
message UploadReq {
// Arduino Core Service instance from the `Init` response.
Instance instance = 1;
// Fully qualified board name of the target board (e.g., `arduino:avr:uno`).
// If this field is not defined, the FQBN of the board attached to the sketch
// via the `BoardAttach` method is used.
string fqbn = 2;
// Path where the sketch to be uploaded is stored. Unless the `import_file`
// field is defined, the compiled binary is assumed to be at the location and
// filename under this path where it is saved by the `Compile` method.
string sketch_path = 3;
// The port of the board.
string port = 4;
// Whether to turn on verbose output during the upload.
bool verbose = 5;
// After upload, verify that the contents of the memory on the board match the
// uploaded binary.
bool verify = 6;
string import_file = 7 [deprecated = true]; // DEPRECATED: Use import_dir instead
// Custom path to a directory containing compiled files. When `import_dir` is
// not specified, the standard build directory under `sketch_path` is used.
string import_dir = 8;
}
message UploadResp {
// The output of the upload process.
bytes out_stream = 1;
// The error output of the upload process.
bytes err_stream = 2;
}