Closed joelguittet closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
0.0% Coverage
0.0% Duplication
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
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.