@@ -17,12 +17,18 @@ syntax = "proto3";
17
17
18
18
package cc.arduino.cli.monitor.v1 ;
19
19
20
+ option deprecated = true ;
20
21
option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/monitor/v1;monitor" ;
21
22
22
23
import "google/protobuf/struct.proto" ;
23
24
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.
25
29
service MonitorService {
30
+ option deprecated = true ;
31
+
26
32
// Open a bidirectional monitor stream. This can be used to implement
27
33
// something similar to the Arduino IDE's Serial Monitor.
28
34
rpc StreamingOpen (stream StreamingOpenRequest )
@@ -34,7 +40,12 @@ service MonitorService {
34
40
// must contain a `monitor_config` message to initialize the monitor target.
35
41
// All subsequent messages must contain bytes to be sent to the target
36
42
// 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.
37
46
message StreamingOpenRequest {
47
+ option deprecated = true ;
48
+
38
49
// Content must be either a monitor config or data to be sent.
39
50
oneof content {
40
51
// Provides information to the monitor that specifies which is the target.
@@ -53,7 +64,12 @@ message StreamingOpenRequest {
53
64
54
65
// Tells the monitor which target to open and provides additional parameters
55
66
// 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.
56
70
message MonitorConfig {
71
+ option deprecated = true ;
72
+
57
73
enum TargetType {
58
74
TARGET_TYPE_SERIAL = 0 ;
59
75
TARGET_TYPE_NULL = 99 ;
@@ -73,7 +89,12 @@ message MonitorConfig {
73
89
int32 recv_rate_limit_buffer = 4 ;
74
90
}
75
91
92
+ // DEPRECATION WARNING: StreamingOpenResponse is deprecated and will be removed
93
+ // in a future release. Use ArduinoCoreService.Monitor and
94
+ // ArduinoCoreService.EnumerateMonitorPortSettings instead.
76
95
message StreamingOpenResponse {
96
+ option deprecated = true ;
97
+
77
98
// The data received from the target.
78
99
bytes data = 1 ;
79
100
0 commit comments