Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions commands/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
return err
}

// Send a message with Success set to true to notify the caller of the port being now active
_ = stream.Send(&rpc.MonitorResponse{Success: true})

go func() {
// close port on gRPC call EOF or errors
defer portProxy.Close()
Expand Down
91 changes: 51 additions & 40 deletions rpc/cc/arduino/cli/commands/v1/monitor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rpc/cc/arduino/cli/commands/v1/monitor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ message MonitorResponse {
// report the default settings) or after a new port_configuration is sent
// (to report the new settings applied)
repeated MonitorPortSetting applied_settings = 3;
// A message with this field set to true is sent as soon as the port is
// succesfully opened
bool success = 4;
}

message MonitorPortSetting {
Expand Down