Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Protocol Documentation

Table of Contents

Top

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

BoardAttachRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
board_uristringThe board's URI (e.g., /dev/ttyACM0).
sketch_pathstringPath of the sketch to attach the board to. The board attachment metadata will be saved to{sketch_path}/sketch.json.
search_timeoutstringDuration in seconds to search the given URI for a connected board before timing out. The default value is 5 seconds.

BoardAttachResponse

FieldTypeLabelDescription
task_progressTaskProgressDescription of the current stage of the board attachment.

BoardDetailsRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
fqbnstringThe fully qualified board name of the board you want information about (e.g.,arduino:avr:uno).

BoardDetailsResponse

FieldTypeLabelDescription
fqbnstringThe fully qualified board name of the board.
namestringName used to identify the board to humans (e.g., Arduino Uno).
versionstringInstalled version of the board's platform.
properties_idstringThe board ID component of the FQBN (e.g.,uno).
aliasstringBoard alias that can be used as a more user friendly alternative to the FQBN.
officialboolWhether this is an official or 3rd party board.
pinoutstringURL of the board's pinout documentation.
packagePackageData about the package that contains the board's platform.
platformBoardPlatformData about the board's platform.
tools_dependenciesToolsDependenciesrepeatedTool dependencies of the board.
config_optionsConfigOptionrepeatedThe board's custom configuration options.
programmersProgrammerrepeatedList of programmers supported by the board
debugging_supportedboolSet to true if the board supports debugging
identification_propertiesBoardIdentificationPropertiesrepeatedIdentifying information for the board (e.g., USB VID/PID).

BoardIdentificationProperties

FieldTypeLabelDescription
propertiesBoardIdentificationProperties.PropertiesEntryrepeatedA set of properties that must all be matched to identify the board

BoardIdentificationProperties.PropertiesEntry

FieldTypeLabelDescription
keystring
valuestring

BoardListAllRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
search_argsstringrepeatedThe search query to filter the board list by.
include_hidden_boardsboolSet to true to get also the boards marked as "hidden" in the platform

BoardListAllResponse

FieldTypeLabelDescription
boardsBoardListItemrepeatedList of installed boards.

BoardListItem

FieldTypeLabelDescription
namestringThe name for use when identifying the board to a human.
fqbnstringThe fully qualified board name. Used to identify the board to a machine.
is_hiddenboolIf the board is marked as "hidden" in the platform
platformPlatformPlatform this board belongs to

BoardListRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
timeoutint64Search for boards for the given time (in milliseconds)

BoardListResponse

FieldTypeLabelDescription
portsDetectedPortrepeatedList of ports and the boards detected on those ports.

BoardListWatchRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
interruptboolSet this to true to stop the discovery process

BoardListWatchResponse

FieldTypeLabelDescription
event_typestringEvent type as received from the serial discovery tool
portDetectedPortInformation about the port
errorstringEventual errors when detecting connected boards

BoardPlatform

FieldTypeLabelDescription
architecturestringArchitecture of the platform (e.g.,avr).
categorystringCategory of the platform. Set toContributed for 3rd party platforms.
urlstringDownload URL of the platform archive file.
archive_filenamestringFile name of the platform archive.
checksumstringChecksum of the platform archive.
sizeint64File size of the platform archive.
namestringName used to identify the platform to humans.

BoardSearchRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
search_argsstringThe search query to filter the board list by.
include_hidden_boardsboolSet to true to get also the boards marked as "hidden" in installed platforms

BoardSearchResponse

FieldTypeLabelDescription
boardsBoardListItemrepeatedList of installed and installable boards.

ConfigOption

FieldTypeLabelDescription
optionstringID of the configuration option. For identifying the option to machines.
option_labelstringName of the configuration option for identifying the option to humans.
valuesConfigValuerepeatedPossible values of the configuration option.

ConfigValue

FieldTypeLabelDescription
valuestringThe configuration option value.
value_labelstringLabel to identify the configuration option to humans.
selectedboolWhether the configuration option is selected.

DetectedPort

FieldTypeLabelDescription
matching_boardsBoardListItemrepeatedThe possible boards attached to the port.
portPortThe port details

Help

FieldTypeLabelDescription
onlinestringURL for getting online help.

Package

FieldTypeLabelDescription
maintainerstringMaintainer of the package.
urlstringThe URL of the platforms index file (e.g.,https://downloads.arduino.cc/packages/package_index.json).
website_urlstringA URL provided by the package author, intended to point to their website.
emailstringEmail address of the package maintainer.
namestringPackage vendor name.
helpHelpResources for getting help about using the package.

Systems

FieldTypeLabelDescription
checksumstringChecksum of the tool archive.
hoststringOperating system identifier.
archive_filenamestringFile name of the tool archive.
urlstringDownload URL of the tool archive.
sizeint64File size of the tool archive.

ToolsDependencies

FieldTypeLabelDescription
packagerstringVendor name of the package containing the tool definition.
namestringTool name.
versionstringTool version.
systemsSystemsrepeatedData for the operating system-specific builds of the tool.

Top

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

ArchiveSketchRequest

FieldTypeLabelDescription
sketch_pathstringAbsolute path to Sketch file or folder containing Sketch file
archive_pathstringAbsolute path to archive that will be created or folder that will contain it
include_build_dirboolSpecifies if build directory should be included in the archive

ArchiveSketchResponse

CreateRequest

CreateResponse

FieldTypeLabelDescription
instanceInstanceAn Arduino Core instance.

DestroyRequest

FieldTypeLabelDescription
instanceInstanceThe Arduino Core Service instance to destroy.

DestroyResponse

InitRequest

FieldTypeLabelDescription
instanceInstanceAn Arduino Core instance.

InitResponse

FieldTypeLabelDescription
init_progressInitResponse.Progress
errorgoogle.rpc.Status

InitResponse.Progress

FieldTypeLabelDescription
download_progressDownloadProgressProgress of the downloads of platforms and libraries index files.
task_progressTaskProgressDescribes the current stage of the initialization.

LoadSketchRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.
sketch_pathstringAbsolute path to single sketch file or a sketch folder

LoadSketchResponse

FieldTypeLabelDescription
main_filestringAbsolute path to a main sketch files
location_pathstringAbsolute path to folder that contains main_file
other_sketch_filesstringrepeatedList of absolute paths to other sketch files
additional_filesstringrepeatedList of absolute paths to additional sketch files
root_folder_filesstringrepeatedList of absolute paths to supported files in the sketch root folder, main file excluded

OutdatedRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.

OutdatedResponse

FieldTypeLabelDescription
outdated_librariesInstalledLibraryrepeatedList of installed libraries that can be updated.
outdated_platformsPlatformrepeatedList of installed cores that can be updated.

UpdateCoreLibrariesIndexRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.

UpdateCoreLibrariesIndexResponse

FieldTypeLabelDescription
download_progressDownloadProgressProgress of the index download.

UpdateIndexRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.

UpdateIndexResponse

FieldTypeLabelDescription
download_progressDownloadProgressProgress of the platforms index download.

UpdateLibrariesIndexRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.

UpdateLibrariesIndexResponse

FieldTypeLabelDescription
download_progressDownloadProgressProgress of the libraries index download.

UpgradeRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from the Init response.
skip_post_installboolSet to true to not run (eventual) post install scripts

UpgradeResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the downloads of the platforms and libraries files.
task_progressTaskProgressDescription of the current stage of the upgrade.

VersionRequest

VersionResponse

FieldTypeLabelDescription
versionstringThe version of Arduino CLI in use.

ArduinoCoreService

The main Arduino Platform service API

BOOTSTRAP COMMANDS

Method NameRequest TypeResponse TypeDescription
CreateCreateRequestCreateResponseCreate a new Arduino Core instance
InitInitRequestInitResponse streamInitializes an existing Arduino Core instance by loading platforms and libraries
DestroyDestroyRequestDestroyResponseDestroy an instance of the Arduino Core Service
UpdateIndexUpdateIndexRequestUpdateIndexResponse streamUpdate package index of the Arduino Core Service
UpdateLibrariesIndexUpdateLibrariesIndexRequestUpdateLibrariesIndexResponse streamUpdate libraries index
UpdateCoreLibrariesIndexUpdateCoreLibrariesIndexRequestUpdateCoreLibrariesIndexResponse streamUpdate packages indexes for both Cores and Libraries
OutdatedOutdatedRequestOutdatedResponseOutdated returns a message with a list of outdated Cores and Libraries
UpgradeUpgradeRequestUpgradeResponse streamUpgrade both Cores and Libraries
VersionVersionRequestVersionResponseGet the version of Arduino CLI in use.
LoadSketchLoadSketchRequestLoadSketchResponseReturns all files composing a Sketch
ArchiveSketchArchiveSketchRequestArchiveSketchResponseCreates a zip file containing all files of specified Sketch
BoardDetailsBoardDetailsRequestBoardDetailsResponseRequests details about a board
BoardAttachBoardAttachRequestBoardAttachResponse streamAttach a board to a sketch. When thefqbn field of a request is not provided, the FQBN of the attached board will be used.
BoardListBoardListRequestBoardListResponseList the boards currently connected to the computer.
BoardListAllBoardListAllRequestBoardListAllResponseList all the boards provided by installed platforms.
BoardSearchBoardSearchRequestBoardSearchResponseSearch boards in installed and not installed Platforms.
BoardListWatchBoardListWatchRequest streamBoardListWatchResponse streamList boards connection and disconnected events.
CompileCompileRequestCompileResponse streamCompile an Arduino sketch.
PlatformInstallPlatformInstallRequestPlatformInstallResponse streamDownload and install a platform and its tool dependencies.
PlatformDownloadPlatformDownloadRequestPlatformDownloadResponse streamDownload a platform and its tool dependencies to thestaging/packages subdirectory of the data directory.
PlatformUninstallPlatformUninstallRequestPlatformUninstallResponse streamUninstall a platform as well as its tool dependencies that are not used by other installed platforms.
PlatformUpgradePlatformUpgradeRequestPlatformUpgradeResponse streamUpgrade an installed platform to the latest version.
UploadUploadRequestUploadResponse streamUpload a compiled sketch to a board.
UploadUsingProgrammerUploadUsingProgrammerRequestUploadUsingProgrammerResponse streamUpload a compiled sketch to a board using a programmer.
ListProgrammersAvailableForUploadListProgrammersAvailableForUploadRequestListProgrammersAvailableForUploadResponseList programmers available for a board.
BurnBootloaderBurnBootloaderRequestBurnBootloaderResponse streamBurn bootloader to a board.
PlatformSearchPlatformSearchRequestPlatformSearchResponseSearch for a platform in the platforms indexes.
PlatformListPlatformListRequestPlatformListResponseList all installed platforms.
LibraryDownloadLibraryDownloadRequestLibraryDownloadResponse streamDownload the archive file of an Arduino library in the libraries index to the staging directory.
LibraryInstallLibraryInstallRequestLibraryInstallResponse streamDownload and install an Arduino library from the libraries index.
ZipLibraryInstallZipLibraryInstallRequestZipLibraryInstallResponse streamInstall a library from a Zip File
GitLibraryInstallGitLibraryInstallRequestGitLibraryInstallResponse streamDownload and install a library from a git url
LibraryUninstallLibraryUninstallRequestLibraryUninstallResponse streamUninstall an Arduino library.
LibraryUpgradeAllLibraryUpgradeAllRequestLibraryUpgradeAllResponse streamUpgrade all installed Arduino libraries to the newest version available.
LibraryResolveDependenciesLibraryResolveDependenciesRequestLibraryResolveDependenciesResponseList the recursive dependencies of a library, as defined by thedepends field of the library.properties files.
LibrarySearchLibrarySearchRequestLibrarySearchResponseSearch the Arduino libraries index for libraries.
LibraryListLibraryListRequestLibraryListResponseList the installed libraries.

Top

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

Board

FieldTypeLabelDescription
namestringName used to identify the board to humans.
fqbnstringFully qualified board name used to identify the board to machines. The FQBN is only available for installed boards.

DownloadProgress

FieldTypeLabelDescription
urlstringURL of the download.
filestringThe file being downloaded.
total_sizeint64Total size of the file being downloaded.
downloadedint64Size of the downloaded portion of the file.
completedboolWhether the download is complete.

Instance

FieldTypeLabelDescription
idint32The ID of the instance.

Platform

FieldTypeLabelDescription
idstringPlatform ID (e.g.,arduino:avr).
installedstringVersion of the platform.
lateststringNewest available version of the platform.
namestringName used to identify the platform to humans (e.g., "Arduino AVR Boards").
maintainerstringMaintainer of the platform's package.
websitestringA URL provided by the author of the platform's package, intended to point to their website.
emailstringEmail of the maintainer of the platform's package.
boardsBoardrepeatedList of boards provided by the platform. If the platform is installed, this is the boards listed in the platform's boards.txt. If the platform is not installed, this is an arbitrary list of board names provided by the platform author for display and may not match boards.txt.
manually_installedboolIf true this Platform has been installed manually in the user' sketchbook hardware folder
deprecatedboolIf true this Platform has been deprecated

Programmer

FieldTypeLabelDescription
platformstring
idstring
namestring

TaskProgress

FieldTypeLabelDescription
namestringDescription of the task.
messagestringAdditional information about the task.
completedboolWhether the task is complete.

Top

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

CompileRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
fqbnstringFully Qualified Board Name, e.g.:arduino:avr:uno. If this field is not defined, the FQBN of the board attached to the sketch via theBoardAttach method is used.
sketch_pathstringThe path where the sketch is stored.
show_propertiesboolShow all build preferences used instead of compiling.
preprocessboolPrint preprocessed code to stdout instead of compiling.
build_cache_pathstringBuilds of 'core.a' are saved into this path to be cached and reused.
build_pathstringPath to use to store the files used for the compilation. If omitted, a directory will be created in the operating system's default temporary path.
build_propertiesstringrepeatedList of custom build properties separated by commas.
warningsstringUsed to tell gcc which warning level to use. The level names are: "none", "default", "more" and "all".
verboseboolTurns on verbose mode.
quietboolSuppresses almost every output.
vid_pidstringVID/PID specific build properties.
jobsint32The max number of concurrent compiler instances to run (asmake -jx). If jobs is set to 0, it will use the number of available CPUs as the maximum.
librariesstringrepeatedList of custom libraries dir paths.
optimize_for_debugboolOptimize compile output for debug, not for release.
export_dirstringOptional: save the build artifacts in this directory, the directory must exist.
cleanboolOptional: cleanup the build folder and do not use any previously cached build
create_compilation_database_onlyboolWhen set totrue only the compilation database will be produced and no actual build will be performed.
source_overrideCompileRequest.SourceOverrideEntryrepeatedThis map (source file -> new content) let the builder use the provided content instead of reading the corresponding file on disk. This is useful for IDE that have unsaved changes in memory. The path must be relative to the sketch directory. Only files from the sketch are allowed.
export_binariesgoogle.protobuf.BoolValueWhen set totrue the compiled binary will be copied to the export directory.
librarystringrepeatedList of paths to library root folders

CompileRequest.SourceOverrideEntry

FieldTypeLabelDescription
keystring
valuestring

CompileResponse

FieldTypeLabelDescription
out_streambytesThe output of the compilation process.
err_streambytesThe error output of the compilation process.
build_pathstringThe compiler build path
used_librariesLibraryrepeatedThe libraries used in the build
executable_sections_sizeExecutableSectionSizerepeatedThe size of the executable split by sections

ExecutableSectionSize

FieldTypeLabelDescription
namestring
sizeint64
max_sizeint64

Top

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

AlreadyAtLatestVersionError

AlreadyAtLatestVersionError is returned when an upgrade is not possible because already at latest version.

PlatformDownloadRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
platform_packagestring
architecturestringArchitecture name of the platform (e.g.,avr).
versionstringPlatform version to download.

PlatformDownloadResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the downloads of platform and tool files.

PlatformInstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
platform_packagestringVendor name of the platform (e.g.,arduino).
architecturestringArchitecture name of the platform (e.g.,avr).
versionstringPlatform version to install.
skip_post_installboolSet to true to not run (eventual) post install scripts for trusted platforms

PlatformInstallResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the downloads of the platform and tool files.
task_progressTaskProgressDescription of the current stage of the installation.

PlatformListRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
updatable_onlyboolSet to true to only list platforms which have a newer version available than the one currently installed.
allboolSet to true to list platforms installed manually in the user' sketchbook hardware folder, installed with the PlatformManager through the CLI or IDE and that are available to install

PlatformListResponse

FieldTypeLabelDescription
installed_platformsPlatformrepeatedThe installed platforms.

PlatformSearchRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
search_argsstringKeywords for the search.
all_versionsboolWhether to show all available versions.false causes only the newest versions of the cores to be listed in the search results.

PlatformSearchResponse

FieldTypeLabelDescription
search_outputPlatformrepeatedResults of the search.

PlatformUninstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
platform_packagestringVendor name of the platform (e.g.,arduino).
architecturestringArchitecture name of the platform (e.g.,avr).

PlatformUninstallResponse

FieldTypeLabelDescription
task_progressTaskProgressDescription of the current stage of the uninstall.

PlatformUpgradeRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
platform_packagestringVendor name of the platform (e.g.,arduino).
architecturestringArchitecture name of the platform (e.g.,avr).
skip_post_installboolSet to true to not run (eventual) post install scripts for trusted platforms

PlatformUpgradeResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the downloads of the platform and tool files.
task_progressTaskProgressDescription of the current stage of the upgrade.

Top

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

DownloadResource

FieldTypeLabelDescription
urlstringDownload URL of the library archive.
archive_filenamestringFilename of the library archive.
checksumstringChecksum of the library archive.
sizeint64File size of the library archive.
cache_pathstringThe directory under the staging subdirectory of the data directory the library archive file will be downloaded to.

GitLibraryInstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
urlstringURL to the repository containing the library
overwriteboolSet to true to overwrite an already installed library with the same name. Defaults to false.

GitLibraryInstallResponse

FieldTypeLabelDescription
task_progressTaskProgressDescription of the current stage of the installation.

InstalledLibrary

FieldTypeLabelDescription
libraryLibraryInformation about the library.
releaseLibraryReleaseWhen theupdatable field of theLibraryList request is set totrue, this will contain information on the latest version of the library in the libraries index.

Library

FieldTypeLabelDescription
namestringThe library's directory name.
authorstringValue of theauthor field in library.properties.
maintainerstringValue of themaintainer field in library.properties.
sentencestringValue of thesentence field in library.properties.
paragraphstringValue of theparagraph field in library.properties.
websitestringValue of theurl field in library.properties.
categorystringValue of thecategory field in library.properties.
architecturesstringrepeatedValue of thearchitectures field in library.properties.
typesstringrepeatedThe type categories of the library. Possible values:Arduino,Partner,Recommended,Contributed,Retired.
install_dirstringThe path of the library directory.
source_dirstringThe location of the library's source files.
utility_dirstringThe location of the library'sutility directory.
container_platformstringIflocation isplatform_builtin orreferenced_platform_builtin, the identifying string for the platform containing the library (e.g.,arduino:avr@1.8.2).
real_namestringValue of thename field in library.properties.
dot_a_linkageboolValue of thedot_a_linkage field in library.properties.
precompiledboolValue of theprecompiled field in library.properties.
ld_flagsstringValue of theldflags field in library.properties.
is_legacyboolA library.properties file is not present in the library's root directory.
versionstringValue of theversion field in library.properties.
licensestringValue of thelicense field in library.properties.
propertiesLibrary.PropertiesEntryrepeatedThe data from the library's library.properties file, including unused fields.
locationLibraryLocationThe location type of the library installation.
layoutLibraryLayoutThe library format type.
examplesstringrepeatedThe example sketches provided by the library
provides_includesstringrepeatedValue of theincludes field in library.properties or, if missing, the list of include files available on the library source root directory.
compatible_withLibrary.CompatibleWithEntryrepeatedMap of FQBNs that specifies if library is compatible with this library

Library.CompatibleWithEntry

FieldTypeLabelDescription
keystring
valuebool

Library.PropertiesEntry

FieldTypeLabelDescription
keystring
valuestring

LibraryDependency

FieldTypeLabelDescription
namestringLibrary name of the dependency.
version_constraintstringVersion constraint of the dependency.

LibraryDependencyStatus

FieldTypeLabelDescription
namestringThe name of the library dependency.
version_requiredstringThe required version of the library dependency.
version_installedstringVersion of the library dependency currently installed.

LibraryDownloadRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
namestringName of the library.
versionstringThe version of the library to download.

LibraryDownloadResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the library download.

LibraryInstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
namestringName of the library.
versionstringThe version of the library to install.
no_depsboolSet to true to skip installation of specified library's dependencies, defaults to false.

LibraryInstallResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the library download.
task_progressTaskProgressDescription of the current stage of the installation.

LibraryListRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
allboolWhether to include built-in libraries (from platforms and the Arduino IDE) in the listing.
updatableboolWhether to list only libraries for which there is a newer version than the installed version available in the libraries index.
namestringIf set filters out the libraries not matching name
fqbnstringBy setting this field all duplicate libraries are filtered out leaving only the libraries that will be used to compile for the specified board FQBN.

LibraryListResponse

FieldTypeLabelDescription
installed_librariesInstalledLibraryrepeatedList of installed libraries.

LibraryRelease

FieldTypeLabelDescription
authorstringValue of theauthor field in library.properties.
versionstringValue of theversion field in library.properties.
maintainerstringValue of themaintainer field in library.properties.
sentencestringValue of thesentence field in library.properties.
paragraphstringValue of theparagraph field in library.properties.
websitestringValue of theurl field in library.properties.
categorystringValue of thecategory field in library.properties.
architecturesstringrepeatedValue of thearchitectures field in library.properties.
typesstringrepeatedThe type categories of the library, as defined in the libraries index. Possible values:Arduino,Partner,Recommended,Contributed,Retired.
resourcesDownloadResourceInformation about the library archive file.
licensestringValue of thelicense field in library.properties.
provides_includesstringrepeatedValue of theincludes field in library.properties.
dependenciesLibraryDependencyrepeatedThe names of the library's dependencies, as defined by the 'depends' field of library.properties.

LibraryResolveDependenciesRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
namestringName of the library.
versionstringThe version of the library to check dependencies of. If no version is specified, dependencies of the newest version will be listed.

LibraryResolveDependenciesResponse

FieldTypeLabelDescription
dependenciesLibraryDependencyStatusrepeatedDependencies of the library.

LibrarySearchRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
querystringThe search query.

LibrarySearchResponse

FieldTypeLabelDescription
librariesSearchedLibraryrepeatedThe results of the search.
statusLibrarySearchStatusWhether the search yielded results.

LibraryUninstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
namestringName of the library.
versionstringThe version of the library to uninstall.

LibraryUninstallResponse

FieldTypeLabelDescription
task_progressTaskProgressDescription of the current stage of the uninstallation.

LibraryUpgradeAllRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.

LibraryUpgradeAllResponse

FieldTypeLabelDescription
progressDownloadProgressProgress of the downloads of files needed for the upgrades.
task_progressTaskProgressDescription of the current stage of the upgrade.

SearchedLibrary

FieldTypeLabelDescription
namestringLibrary name.
releasesSearchedLibrary.ReleasesEntryrepeatedThe index data for the available versions of the library. The key of the map is the library version.
latestLibraryReleaseThe index data for the latest version of the library.

SearchedLibrary.ReleasesEntry

FieldTypeLabelDescription
keystring
valueLibraryRelease

ZipLibraryInstallRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
pathstringPath to the archived library
overwriteboolSet to true to overwrite an already installed library with the same name. Defaults to false.

ZipLibraryInstallResponse

FieldTypeLabelDescription
task_progressTaskProgressDescription of the current stage of the installation.

LibraryLayout

NameNumberDescription
LIBRARY_LAYOUT_FLAT0Library is in the 1.0 Arduino library format.
LIBRARY_LAYOUT_RECURSIVE1Library is in the 1.5 Arduino library format.

LibraryLocation

NameNumberDescription
LIBRARY_LOCATION_IDE_BUILTIN0In thelibraries subdirectory of the Arduino IDE installation.
LIBRARY_LOCATION_USER1In thelibraries subdirectory of the user directory (sketchbook).
LIBRARY_LOCATION_PLATFORM_BUILTIN2In thelibraries subdirectory of a platform.
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN3WhenLibraryLocation is used in a context where a board is specified, this indicates the library is in thelibraries subdirectory of a platform referenced by the board's platform.
LIBRARY_LOCATION_UNMANAGED4Outside thelibraries folders managed by the CLI.

LibrarySearchStatus

NameNumberDescription
LIBRARY_SEARCH_STATUS_FAILED0No search results were found.
LIBRARY_SEARCH_STATUS_SUCCESS1Search results were found.

Top

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

Port

Port represents a board port that may be used to upload or to monitor a board

FieldTypeLabelDescription
addressstringAddress of the port (e.g.,/dev/ttyACM0).
labelstringThe port label to show on the GUI (e.g. "ttyACM0")
protocolstringProtocol of the port (e.g.,serial,network, ...).
protocol_labelstringA human friendly description of the protocol (e.g., "Serial Port (USB)").
propertiesPort.PropertiesEntryrepeatedA set of properties of the port

Port.PropertiesEntry

FieldTypeLabelDescription
keystring
valuestring

Top

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

BurnBootloaderRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
fqbnstringFully qualified board name of the target board (e.g.,arduino:avr:uno).
portPortThe port of the programmer used to program the bootloader.
verboseboolWhether to turn on verbose output during the programming.
verifyboolAfter programming, verify the contents of the memory on the board match the uploaded binary.
programmerstringThe programmer to use for burning bootloader.
dry_runboolIf set to true, the actual upload will not be performed but a trace output will be printed stdout. This is for debugging purposes.
user_fieldsBurnBootloaderRequest.UserFieldsEntryrepeatedUser provided fields usually used by upload tools that need authentication or in any case fields that can be customized by the user at upload time and cannot be known previously. For more info:https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields

BurnBootloaderRequest.UserFieldsEntry

FieldTypeLabelDescription
keystring
valuestring

BurnBootloaderResponse

FieldTypeLabelDescription
out_streambytesThe output of the burn bootloader process.
err_streambytesThe error output of the burn bootloader process.

ListProgrammersAvailableForUploadRequest

FieldTypeLabelDescription
instanceInstance
fqbnstring

ListProgrammersAvailableForUploadResponse

FieldTypeLabelDescription
programmersProgrammerrepeated

ProgrammerIsRequiredForUploadError

SupportedUserFieldsRequest

FieldTypeLabelDescription
instanceInstance
fqbnstring
protocolstringProtocol that will be used to upload, this information is necessary to pick the right upload tool for the board specified with the FQBN.

SupportedUserFieldsResponse

FieldTypeLabelDescription
user_fieldsUserFieldrepeatedUser fields supported by board specified in SupportedUserFieldsRequest. If board doesn't support any field it will be empty.

UploadRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
fqbnstringFully qualified board name of the target board (e.g.,arduino:avr:uno). If this field is not defined, the FQBN of the board attached to the sketch via theBoardAttach method is used.
sketch_pathstringPath where the sketch to be uploaded is stored. Unless theimport_file field is defined, the compiled binary is assumed to be at the location and filename under this path where it is saved by theCompile method.
portPortThe port of the board.
verboseboolWhether to turn on verbose output during the upload.
verifyboolAfter upload, verify that the contents of the memory on the board match the uploaded binary.
import_filestringWhenimport_file is specified, it overrides theimport_dir andsketch_path params.
import_dirstringCustom path to a directory containing compiled files. Whenimport_dir is not specified, the standard build directory undersketch_path is used.
programmerstringThe programmer to use for upload. If set an UploadUsingProgrammer is triggered instead of a normal upload. The UploadUsingProgrammer call may also be used for explicit error check.
dry_runboolIf set to true, the actual upload will not be performed but a trace output will be printed stdout. This is for debugging purposes.
user_fieldsUploadRequest.UserFieldsEntryrepeatedUser provided fields usually used by upload tools that need authentication or in any case fields that can be customized by the user at upload time and cannot be known previously. For more info:https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields

UploadRequest.UserFieldsEntry

FieldTypeLabelDescription
keystring
valuestring

UploadResponse

FieldTypeLabelDescription
out_streambytesThe output of the upload process.
err_streambytesThe error output of the upload process.

UploadUsingProgrammerRequest

FieldTypeLabelDescription
instanceInstanceArduino Core Service instance from theInit response.
fqbnstringFully qualified board name of the target board (e.g.,arduino:avr:uno). If this field is not defined, the FQBN of the board attached to the sketch via theBoardAttach method is used.
sketch_pathstringPath where the sketch to be uploaded is stored. Unless theimport_file field is defined, the compiled binary is assumed to be at the location and filename under this path where it is saved by theCompile method.
portPortThe port of the board.
verboseboolWhether to turn on verbose output during the upload.
verifyboolAfter upload, verify that the contents of the memory on the board match the uploaded binary.
import_filestringWhenimport_file is specified, it overrides theimport_dir andsketch_path params.
import_dirstringCustom path to a directory containing compiled files. Whenimport_dir is not specified, the standard build directory undersketch_path is used.
programmerstringThe programmer to use for upload.
dry_runboolIf set to true, the actual upload will not be performed but a trace output will be printed stdout. This is for debugging purposes.
user_fieldsUploadUsingProgrammerRequest.UserFieldsEntryrepeatedUser provided fields usually used by upload tools that need authentication or in any case fields that can be customized by the user at upload time and cannot be known previously. For more info:https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields

UploadUsingProgrammerRequest.UserFieldsEntry

FieldTypeLabelDescription
keystring
valuestring

UploadUsingProgrammerResponse

FieldTypeLabelDescription
out_streambytesThe output of the upload process.
err_streambytesThe error output of the upload process.

UserField

FieldTypeLabelDescription
tool_idstringId of the tool that supports this field
namestringName used internally to store and retrieve this field
labelstringLabel is the text shown to the user when they need to input this field
secretboolTrue if the value of the field must not be shown when typing, for example when the user inputs a network password

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)

[8]ページ先頭

©2009-2025 Movatter.jp