Skip to content

Commit e66a6b2

Browse files
committed
Added option to query cloud API
1 parent df16a57 commit e66a6b2

File tree

3 files changed

+37
-18
lines changed

3 files changed

+37
-18
lines changed

Diff for: commands/service_board_identify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (s *arduinoCoreServerImpl) BoardIdentify(ctx context.Context, req *rpc.Boar
3232
defer release()
3333

3434
props := properties.NewFromHashmap(req.GetProperties())
35-
res, err := identify(pme, props, s.settings, true)
35+
res, err := identify(pme, props, s.settings, req.GetUseCloudApiForUnknownBoardDetection())
3636
if err != nil {
3737
return nil, err
3838
}

Diff for: rpc/cc/arduino/cli/commands/v1/board.pb.go

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

Diff for: rpc/cc/arduino/cli/commands/v1/board.proto

+3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ message BoardIdentifyRequest {
243243
Instance instance = 1;
244244
// A set of properties to search (can be taken from a Port message).
245245
map<string, string> properties = 2;
246+
// If set to true, when a board cannot be identified using the installed
247+
// platforms, the cloud API will be called to detect the board.
248+
bool use_cloud_api_for_unknown_board_detection = 3;
246249
}
247250

248251
message BoardIdentifyResponse {

0 commit comments

Comments
 (0)