From 785eb6b10f10a4bc97c92d798b2dc5006c6f2031 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 6 Jul 2020 04:17:06 -0700 Subject: [PATCH] [skip changelog] Update sketch specification to reflect support for port attachment arduino-cli board attach now associates the port with the sketch (hooray!!!). The sketch specification's metadata section was written before this change was made and so only mentioned the FQBN association capabilities. --- docs/sketch-specification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sketch-specification.md b/docs/sketch-specification.md index 5765ea6c418..2e1e6624ced 100644 --- a/docs/sketch-specification.md +++ b/docs/sketch-specification.md @@ -55,7 +55,7 @@ The Arduino IDE's **File > Save As...** only copies the code files in the sketch Arduino CLI and Arduino Web Editor use a file named sketch.json, located in the sketch root folder, to store sketch metadata. -The `cpu` key contains the board configuration information. This can be set via [`arduino-cli board attach`](https://arduino.github.io/arduino-cli/commands/arduino-cli_board_attach/) or by selecting a board in the Arduino Web Editor while the sketch is open. With this configuration set, it is not necessary to specify the `--fqbn` flag to the [`arduino-cli compile`](https://arduino.github.io/arduino-cli/commands/arduino-cli_compile/) or [`arduino-cli upload`](https://arduino.github.io/arduino-cli/commands/arduino-cli_upload/) commands when compiling or uploading the sketch. +The `cpu` key contains the board configuration information. This can be set via [`arduino-cli board attach`](https://arduino.github.io/arduino-cli/commands/arduino-cli_board_attach/) or by selecting a board in the Arduino Web Editor while the sketch is open. With this configuration set, it is not necessary to specify the `--fqbn` or `--port` flags to the [`arduino-cli compile`](https://arduino.github.io/arduino-cli/commands/arduino-cli_compile/) or [`arduino-cli upload`](https://arduino.github.io/arduino-cli/commands/arduino-cli_upload/) commands when compiling or uploading the sketch. The `included_libs` key defines the library versions the Arduino Web Editor uses when the sketch is compiled. This is Arduino Web Editor specific because all versions of all the Library Manager libraries are pre-installed in Arduino Web Editor, while only one version of each library may be installed when using the other Arduino development software.