I'm working on a IoT device that leverages the AWS IoT and AWS FOTA components from the nRF Connect SDK. The device is battery powered, and so I want to limit the connection time to the minimum possible. To accomplish that I want to affirmatively confirm that the data queue is empty, the shadow is synced, and no firmware updates (or other jobs) are pending. I'm encountering issues on the third condition: make sure no firmware updates are pending.
I can't seem to find any hook into the FOTA library that would allow me to confirm that the jobs topic was checked, evaluated, and found to be empty. My current approach was to subscribe to the same topic, but the FOTA library appears to 'consume' those events, and so they're never seen by our code. We use a similar approach for checking the shadow, and I can see in the FOTA module's debug log that it checked that topic as well, however that event seems to have been passed on and our code is able to handle those results.
Is it currently the case that there's no way to check the incoming job topic results manually, or confirm that the FOTA module itself has checked them? Any guidance would be much appreciated.