App sync after wake-up from ULPM


In my system I have a mangOH yellow that is most of the time in ULPM and is woken up by an other sensor over a GPIO. I have made a custom application that communicate with the sensor over UART and then send sensor value to Octave through DataHub app. The corresponding resource have an observations that should trigger the sending of the value to Octave cloud.

However, since I have configured the ULPM, the data is not forwarded to the cloud. When I check the log with logread, I can see that my application is communicating over uart and sending data to DataHub before CloudInterface / Router apps configure the observation for my resource. I thus suspect the observation not to be triggered.

As a provisonal solution I have delayed my stuff in my app but this is not a great solution as I want to be sure the observation is triggered no matter how long CloudInterface app take to configure itself and even more important I don’t want to spend time waiting if everything is ready and consume battery battery for nothing.

Is there a way to sync apps to wait for example that CloudInterface and cellular network is ready before performing my tasks ?