I have any app that is required to perform work if a le_avdata session is not open and stop that work when a le_avdata session is open. I used the le_avdata_AddSessionStateHandler which I have has works well. Something that I didn’t expect is when I update my app that has an open data session (only the app I’m updating is restarted all other apps are left running by Legato) there doesn’t seem to be an API to determine if a session is open or closed. Obviously the handler isn’t called because the session event has happened before the app restarted.
Is there an API to determine if an AVData session is open?
I’m not sure how to go about accessing the AT commands from within my app. Can you please help me understand how I can issue AT commands from within my app?
@jyijyi I can’t seem to get a response from the AT service I keep getting ERROR.
I run microcom /dev/ttyAT and then type AT+WDSS? and I get ERROR. The only response that gives me OK is AT. What’s also interesting is a lot of the AT examples show using the -E switch but this doesn’t seem to be an option for me.