Skip to content

Commit b831d21

Browse files
committed
Added Port object in grpc API
1 parent 2344d99 commit b831d21

File tree

2 files changed

+252
-0
lines changed

2 files changed

+252
-0
lines changed

rpc/cc/arduino/cli/commands/v1/port.pb.go

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This file is part of arduino-cli.
2+
//
3+
// Copyright 2021 ARDUINO SA (http://www.arduino.cc/)
4+
//
5+
// This software is released under the GNU General Public License version 3,
6+
// which covers the main part of arduino-cli.
7+
// The terms of this license can be found at:
8+
// https://www.gnu.org/licenses/gpl-3.0.en.html
9+
//
10+
// You can be released from the requirements of the above licenses by purchasing
11+
// a commercial license. Buying such a license is mandatory if you want to
12+
// modify or otherwise use the software for commercial activities involving the
13+
// Arduino software without disclosing the source code of your own applications.
14+
// To purchase a commercial license, send an email to [email protected].
15+
16+
syntax = "proto3";
17+
18+
package cc.arduino.cli.commands.v1;
19+
20+
option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1;commands";
21+
22+
// Port represents a board port that may be used to upload or to monitor a board
23+
message Port {
24+
// Address of the port (e.g., `/dev/ttyACM0`).
25+
string address = 1;
26+
// The port label to show on the GUI (e.g. "ttyACM0")
27+
string label = 2;
28+
// Protocol of the port (e.g., `serial`, `network`, ...).
29+
string protocol = 3;
30+
// A human friendly description of the protocol (e.g., "Serial Port (USB)").
31+
string protocol_label = 4;
32+
// A set of properties of the port
33+
map<string, string> properties = 5;
34+
}

0 commit comments

Comments
 (0)