Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added BoardIdentify gRPC call. #2794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added option to query cloud API
  • Loading branch information
cmaglie committed Jan 7, 2025
commit 8675a40dffd2b4c603c26eb182db47052830f972
2 changes: 1 addition & 1 deletion 2 commands/service_board_identify.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s *arduinoCoreServerImpl) BoardIdentify(ctx context.Context, req *rpc.Boar
defer release()

props := properties.NewFromHashmap(req.GetProperties())
res, err := identify(pme, props, s.settings, true)
res, err := identify(pme, props, s.settings, !req.GetUseCloudApiForUnknownBoardDetection())
if err != nil {
return nil, err
}
Expand Down
50 changes: 33 additions & 17 deletions 50 rpc/cc/arduino/cli/commands/v1/board.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 3 rpc/cc/arduino/cli/commands/v1/board.proto
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ message BoardIdentifyRequest {
Instance instance = 1;
// A set of properties to search (can be taken from a Port message).
map<string, string> properties = 2;
// If set to true, when a board cannot be identified using the installed
// platforms, the cloud API will be called to detect the board.
bool use_cloud_api_for_unknown_board_detection = 3;
}

message BoardIdentifyResponse {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.