Skip to content

Commit 12f1afc

Browse files
committed
Add gRPC interface function to request user fields supported by a board/protocol combination
1 parent 991a264 commit 12f1afc

File tree

17 files changed

+307
-260
lines changed

17 files changed

+307
-260
lines changed

commands/daemon/daemon.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgra
349349
return stream.Send(resp)
350350
}
351351

352+
// SupportedUserFields FIXMEDOC
353+
func (s *ArduinoCoreServerImpl) SupportedUserFields(ctx context.Context, req *rpc.SupportedUserFieldsRequest) (*rpc.SupportedUserFieldsResponse, error) {
354+
res, err := upload.SupportedUserFields(ctx, req)
355+
return res, convertErrorToRPCStatus(err)
356+
}
357+
352358
// BurnBootloader FIXMEDOC
353359
func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderRequest, stream rpc.ArduinoCoreService_BurnBootloaderServer) error {
354360
resp, err := upload.BurnBootloader(

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 211 additions & 199 deletions
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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ service ArduinoCoreService {
120120
rpc UploadUsingProgrammer(UploadUsingProgrammerRequest)
121121
returns (stream UploadUsingProgrammerResponse);
122122

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

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

Lines changed: 64 additions & 28 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy