When making a Particle.publish() call like the one below, how does the specified Time To Live (TTL) value of 60 seconds affect how the code executes?
Particle.publish(eventName, data, 60, PRIVATE);
- Does this command pause execution until it has successfully published within the 60 second timeframe? (i.e. waits for confirmation from the cloud of received publish?)
- If it does not successfully publish during 60 seconds, does it stop attempting?
- Does the code pause execution altogether at this command, wait 60 seconds, then publish the data?
I’m likely overthinking this one, but I haven’t found anything in the Firmware Guide that has given me a definitive answer on this. Thanks for your help!