joelguittet / mender-mcu-client

Mender client for MCU, just because it's cool to have it
Apache License 2.0
37 stars 7 forks source link

client: allow application triggering works #26

Closed joelguittet closed 1 year ago

joelguittet commented 1 year ago

The purpose of this Pull Request is to add APIs allowing the application to trigger works (authentication/update/inventory/configure). Additionally, it is possible to disable the periodic execution of works by configuration, so both feature together permit to handle triggering of the execution of the mender client from the application.

Works are still executed from the mender work queue thread inside the rtos module to ensure priorities, stack size etc that are guaranteed by the rtos module scheduler.

The troubleshooting work cannot be stopped and triggered from the applications. There is no interest for that because it is a pure internal work to perform keep alive with the mender server.

This Pull Request replaces https://github.com/joelguittet/mender-mcu-client/pull/19 and offers a solution to https://github.com/joelguittet/mender-mcu-client/issues/17.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here