Hey Particle community,
I have been trying to figure out if there is any way of setting a flag on the Cloud that my Boron can read upon connecting to the cloud, and use that flag's value to affect the execution flow.
The most similar thing I have seen is System.updatesPending(). I want to implement my own sort of updatesPending() mechanism, which would actually be something like functionCallPending(). If True would keep my device online for longer to receive the function call before disconnecting and going into ULP sleep.
I am developing a battery based product using a Particle Boron. Given that my device is battery powered I limit my connections to the Cloud to about once every two hours and only for the needed time for a Particle.publish() message to go out, checking for System.updatesPending() and disconnecting immediately afterwards.
I guess this could also be seen as a reverse .variable() call where a device would read a value from the cloud.
I know there is something around publishing events and Subscribe but I couldn't find if there are timeouts for that. I also couldn't really find what is a the function call timeout either.
Any tips, tricks, links or examples are appreciated. Thanks in advance!