Hello,
in mi application I’ve a Componet A calling a function on Component B.
Componet B is:
connected to GNSS (ConnectService in Component Init)
exposes a function “stop” via api to component A.
the “stop” function start a thread (I’m using thread to avoid blocking componet A waiting) and call le_gnss_stop().
When runnig, when i call “stop” the app crashes. It seems that access to le_gnss is not permitted, so i tried to call ConnectService, in thread before any operations, but even in this case I’ve erros.
More generally, whats’ the right approach in legato to handle this kind of situations? To avoid producer-consumer problem?