|
| 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