Skip to content

Commit a5ee716

Browse files
silvanocerzad-a-v
authored andcommitted
Add gRPC interface function to request user fields supported by a board/protocol combination (arduino#1503)
1 parent 6b6326b commit a5ee716

18 files changed

+332
-284
lines changed

commands/daemon/daemon.go

+6
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,12 @@ func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgra
353353
return stream.Send(resp)
354354
}
355355

356+
// SupportedUserFields FIXMEDOC
357+
func (s *ArduinoCoreServerImpl) SupportedUserFields(ctx context.Context, req *rpc.SupportedUserFieldsRequest) (*rpc.SupportedUserFieldsResponse, error) {
358+
res, err := upload.SupportedUserFields(ctx, req)
359+
return res, convertErrorToRPCStatus(err)
360+
}
361+
356362
// BurnBootloader FIXMEDOC
357363
func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderRequest, stream rpc.ArduinoCoreService_BurnBootloaderServer) error {
358364
resp, err := upload.BurnBootloader(

rpc/cc/arduino/cli/commands/v1/board.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/commands.pb.go

+233-220
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/commands.proto

+5
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ service ArduinoCoreService {
121121
rpc UploadUsingProgrammer(UploadUsingProgrammerRequest)
122122
returns (stream UploadUsingProgrammerResponse);
123123

124+
// Returns the list of users fields necessary to upload to that board
125+
// using the specified protocol.
126+
rpc SupportedUserFields(SupportedUserFieldsRequest)
127+
returns (SupportedUserFieldsResponse);
128+
124129
// List programmers available for a board.
125130
rpc ListProgrammersAvailableForUpload(
126131
ListProgrammersAvailableForUploadRequest)

rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go

+65-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/common.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/compile.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/core.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/lib.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/monitor.pb.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/port.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/upload.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/debug/v1/debug.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/debug/v1/debug_grpc.pb.go

+4-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/monitor/v1/monitor.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/monitor/v1/monitor_grpc.pb.go

+4-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/settings/v1/settings.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/settings/v1/settings_grpc.pb.go

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)