We have almost finalized our application and we are now testing how we can update the software from remote, we would like to use the FOTA functionality and this should go through the le_avc interface.
Have tried to implement this using a sample code from the legato github:
// Register AirVantage status report handler. This makes this app “control app”.
// Start an AVC session at least once.
LE_ASSERT(LE_FAULT != le_avc_StartSession());
The handler will return the following:
Air Vantage agent reported update status: AUTHENTICATION_STARTED
Air Vantage agent reported update status: AUTHENTICATION_FAILED
Air Vantage agent reported unexpected update status: 16
Air Vantage agent reported update status: SESSION_STOPPED
And after a while also our application will stop sending data to our backend.
Our application is using the le_mdc interface to start the data connection, we are using profile 2 as using profile 1 was giving odd returns from the status change handler function.
So, my question is if the airVantage is already using the le_mdc and if this has to be on a specific profile i.e. if our app is using the profile 2, then running the airVantage which is using the profile 1 will get the modem to stop working…