Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Protocol Documentation

Table of Contents

Top

cc/arduino/cli/monitor/v1/monitor.proto

MonitorConfig

Tells the monitor which target to open and provides additional parameters that might be needed to configure the targetor the monitor itself.

FieldTypeLabelDescription
targetstringThe target name.
typeMonitorConfig.TargetType
additional_configgoogle.protobuf.StructAdditional parameters that might be needed to configure the target or the monitor itself.
recv_rate_limit_bufferint32This parameter indicates how many bytes should be buffered on the server side before dropping. If >0 then the server will enable a rate limiter and will send incoming data to the client only when the client allows it: see the StreamingOpenReq.recv_acknowledge parameter for details.

StreamingOpenRequest

The top-level message sent by the client for theStreamingOpen method. MultipleStreamingOpenReq messages can besent but the first message must contain amonitor_config message to initialize the monitor target. All subsequentmessages must contain bytes to be sent to the target and must not contain amonitor_config message.

FieldTypeLabelDescription
configMonitorConfigProvides information to the monitor that specifies which is the target. The firstStreamingOpenReq message must contain aconfig message.
databytesThe data to be sent to the target being monitored.
recv_acknowledgeint32When the rate limiter is enabled, this parameter is used to report the number of successfully processed StreamingOpenResp messages (with data).

StreamingOpenResponse

FieldTypeLabelDescription
databytesThe data received from the target.
droppedint32The number of bytes dropped. During regular updates this number should be 0, but in case the client is not able to process the recv window quickly enough this parameter will report the number of dropped bytes.

MonitorConfig.TargetType

NameNumberDescription
TARGET_TYPE_SERIAL0
TARGET_TYPE_NULL99

MonitorService

MonitorService provides services for boards monitor

Method NameRequest TypeResponse TypeDescription
StreamingOpenStreamingOpenRequest streamStreamingOpenResponse streamOpen a bidirectional monitor stream. This can be used to implement something similar to the Arduino IDE's Serial Monitor.

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)

[8]ページ先頭

©2009-2025 Movatter.jp