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 JSON settings definition format and conversion to C code #4

Open
2 tasks
TjazVracko opened this issue Jan 10, 2023 · 1 comment
Open
2 tasks

Add JSON settings definition format and conversion to C code #4

TjazVracko opened this issue Jan 10, 2023 · 1 comment
Assignees
Labels
type: epic A bigger request that contains multiple sub-tasks. type: feature request New feature or request.

Comments

@TjazVracko
Copy link
Collaborator

TjazVracko commented Jan 10, 2023

Context

a JSON file defines each setting (id, key, type, default value).
Some Kconfig option enables JSON->C code conversion (probably one with the relative path to JSON and one to enable the conversion).
The code will read the JSON and generate applicable user_settings_add functions, so they can be used from the firmware.

Required steps / Implementation details

The following step are required:

Check how this is done in b-braun.
The JSON should be as similar as possible to simplify the use for our phone app developpers.

Definition of Done

  • JSON format is defined
  • conversion code exists and is tested
  • Kconfig options exist to enable this functionality in a project
  • code is reviewed
@TjazVracko TjazVracko self-assigned this Jan 10, 2023
@eva-cerncic
Copy link
Contributor

It would be useful to add "get default value", so we can also auto-generate function that will set default values from json structure if the new default value is different from the set one or default is not set yet.

@TjazVracko TjazVracko added type: epic A bigger request that contains multiple sub-tasks. type: feature request New feature or request. labels Jan 27, 2023
@klancarLuka klancarLuka self-assigned this Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: epic A bigger request that contains multiple sub-tasks. type: feature request New feature or request.
Projects
None yet
Development

No branches or pull requests

4 participants