@@ -17,12 +17,18 @@ syntax = "proto3";
1717
1818package cc.arduino.cli.monitor.v1 ;
1919
20+ option deprecated = true ;
2021option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/monitor/v1;monitor" ;
2122
2223import "google/protobuf/struct.proto" ;
2324
24- // MonitorService provides services for boards monitor
25+ // MonitorService provides services for boards monitor.
26+ // DEPRECATION WARNING: MonitorService is deprecated and will be removed in a
27+ // future release. Use ArduinoCoreService.Monitor and
28+ // ArduinoCoreService.EnumerateMonitorPortSettings instead.
2529service MonitorService {
30+ option deprecated = true ;
31+
2632 // Open a bidirectional monitor stream. This can be used to implement
2733 // something similar to the Arduino IDE's Serial Monitor.
2834 rpc StreamingOpen (stream StreamingOpenRequest )
@@ -34,7 +40,12 @@ service MonitorService {
3440// must contain a `monitor_config` message to initialize the monitor target.
3541// All subsequent messages must contain bytes to be sent to the target
3642// and must not contain a `monitor_config` message.
43+ // DEPRECATION WARNING: StreamingOpenRequest is deprecated and will be removed
44+ // in a future release. Use ArduinoCoreService.Monitor and
45+ // ArduinoCoreService.EnumerateMonitorPortSettings instead.
3746message StreamingOpenRequest {
47+ option deprecated = true ;
48+
3849 // Content must be either a monitor config or data to be sent.
3950 oneof content {
4051 // Provides information to the monitor that specifies which is the target.
@@ -53,7 +64,12 @@ message StreamingOpenRequest {
5364
5465// Tells the monitor which target to open and provides additional parameters
5566// that might be needed to configure the target or the monitor itself.
67+ // DEPRECATION WARNING: MonitorConfig is deprecated and will be removed
68+ // in a future release. Use ArduinoCoreService.Monitor and
69+ // ArduinoCoreService.EnumerateMonitorPortSettings instead.
5670message MonitorConfig {
71+ option deprecated = true ;
72+
5773 enum TargetType {
5874 TARGET_TYPE_SERIAL = 0 ;
5975 TARGET_TYPE_NULL = 99 ;
@@ -73,7 +89,12 @@ message MonitorConfig {
7389 int32 recv_rate_limit_buffer = 4 ;
7490}
7591
92+ // DEPRECATION WARNING: StreamingOpenResponse is deprecated and will be removed
93+ // in a future release. Use ArduinoCoreService.Monitor and
94+ // ArduinoCoreService.EnumerateMonitorPortSettings instead.
7695message StreamingOpenResponse {
96+ option deprecated = true ;
97+
7798 // The data received from the target.
7899 bytes data = 1 ;
79100
0 commit comments