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

Add a "properties" section to apps/containers #7

Open
floitsch opened this issue Feb 27, 2023 · 1 comment
Open

Add a "properties" section to apps/containers #7

floitsch opened this issue Feb 27, 2023 · 1 comment

Comments

@floitsch
Copy link
Member

In the device specification: it would be really convenient to have a "properties" section with each application, that could then be used easily by the application.

Example (inside a device specification):

"containers": {
  "my_app": {
    "main": "foo.toit",
    "properties": {
      "pin1": 32,
      "pin2": 33
    }
  }
}
@floitsch
Copy link
Member Author

There might be some restrictions we want to put on some of these properties (like rolling them back if the connection breaks). Should we always require a map for each property? Any other better way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant