Skip to content
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

Allow storing the protocol+port info per sketch profile #2554

Open
3 tasks done
dankeboy36 opened this issue Feb 28, 2024 · 0 comments
Open
3 tasks done

Allow storing the protocol+port info per sketch profile #2554

dankeboy36 opened this issue Feb 28, 2024 · 0 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@dankeboy36
Copy link
Contributor

dankeboy36 commented Feb 28, 2024

Describe the request

Please let the sketch profile file store the preferred port (address) and (port) protocol per profile.

Assuming this format:

profiles:
  <PROFILE_NAME>:
    notes: <USER_NOTES>
    fqbn: <FQBN>
    platforms:
      - platform: <PLATFORM> (<PLATFORM_VERSION>)
        platform_index_url: <3RD_PARTY_PLATFORM_URL>
      - platform: <PLATFORM_DEPENDENCY> (<PLATFORM_DEPENDENCY_VERSION>)
        platform_index_url: <3RD_PARTY_PLATFORM_DEPENDENCY_URL>
    libraries:
      - <LIB_NAME> (<LIB_VERSION>)
      - <LIB_NAME> (<LIB_VERSION>)
      - <LIB_NAME> (<LIB_VERSION>)

  ...more profiles here...

Please support this:

4a5,6
>     protocol: <PROTOCOL> # serial, network, teensy, etc.
>     port: <PORT> # /dev/ttyACM0, COM2, etc.

Thank you!

Describe the current behavior

Currently, it's possible to store a single preferred protocol+port pair in the sketch profile.

default_port: /dev/ttyACM0
default_protocol: serial

It would be great to store it per profile. If a profile does not specify a port/protocol, the default_port/default_protocol is used.

Arduino CLI version

af0b60e

Operating system

macOS

Operating system version

11.7.10

Additional context

Related:

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details
@dankeboy36 dankeboy36 added the type: enhancement Proposed improvement label Feb 28, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants