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

modules: Handle desired configurations #116

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

simensrostad
Copy link
Collaborator

@simensrostad simensrostad commented May 30, 2024

Handle desired configurations set in the shadow:

  • Add cddl schema for configurations set in the shadow
  • Add configuration channel that interested modules can subscribe to
  • Enable PWM and set RGB values according to the shadow configurations
  • Update trigger module to only use system workqueue, this is ok
    since we are not blocking the system workqueue for long periods of
    time and its simplifies the module quite a bit.
  • The trigger will only run as long as we are connected.

Missing:

  • Adopting gnss enable. This depends on GNSS being sent internally
    from the location module.

@simensrostad simensrostad marked this pull request as draft May 30, 2024 12:43
@simensrostad simensrostad force-pushed the add/confighandling branch 3 times, most recently from 9c458a3 to 51743aa Compare June 3, 2024 15:59
@simensrostad simensrostad changed the title modules: Add configuration handling modules: Handle desired configurations Jun 3, 2024
@simensrostad simensrostad force-pushed the add/confighandling branch 4 times, most recently from 37657be to 904c73a Compare June 3, 2024 17:38
@balaji-srin
Copy link

balaji-srin commented Jun 3, 2024

Also remove simple config module?

@simensrostad simensrostad force-pushed the add/confighandling branch 5 times, most recently from 528cebe to 23d8c25 Compare June 4, 2024 10:17
@simensrostad
Copy link
Collaborator Author

Also remove simple config module?

Ill wait a bit before I remove it, I intend to iterate on the config stuff. Just to be completely sure we don't need it.

@simensrostad simensrostad marked this pull request as ready for review June 4, 2024 10:23
Handle desired configurations set in the shadow:
 - Add cddl schema for configurations set in the shadow
 - Add configuration channel that interested modules can subscribe to
 - Enable PWM and set RGB values according to the shadow configurations
 - Update trigger module to only use system workqueue, this is ok
   since we are not blocking the system workqueue for long periods of
   time and its simplifies the module quite a bit.
 - The trigger will only run as long as we are connected.

Missing:
 - Adopting gnss enable. This depends on GNSS being sent internally
   from the location module.

Signed-off-by: Simen S. Røstad <[email protected]>
Copy link

sonarqubecloud bot commented Jun 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@simensrostad simensrostad merged commit e3e12a1 into hello-nrfcloud:main Jun 4, 2024
4 of 5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants