I have tried to use the API’s supervisor ( le_sup_ctrl.api, le_sup_state.api, le_sup_wdog.api) in a Legato Application. The idea is that we will have several apps, and one of this apps will be responsible of keep the status, and shutdown the others when necessary. In order to do that, we seek on the documentation, and we found that there is an API to interact with the supervisor
The first step was to ‘add’ the api’s files through the .cdef of the Component (appComponent):
Also, within the appComponent.c file, I’ve added the following line:
Then, I have included a reference of the Component: appAplication -> References -> Edit dependencies … -> check appComponent
I also have included:
appAplication.appComponent.le_sup_ctrl -> supervisor.le_sup_ctrl
appAplication.appComponent.le_sup_state -> supervisor.le_sup_state
appAplication.appComponent.le_sup_wdog -> supervisor.le_sup_wdog
After doing all this things, the app does nothing. If we just comment the supervisor part, it works normally (starting, geting output of info from the logger, etc).
But when we add the supervisor part, it stops doing anything. App keeps running, but we can’t see any log. Obviously, we’re doing something wrong.
But what? We’re suspicious of the binding:
Is correct the name of “supervisor” service? Do we need to add some permission to use the service supervisor?
Thanks in advantage and regards!