Hi, I’m losing messages sent right before sleep. I see related topics but none recent. What’s the latest?
The doc says:
This flag causes
Particle.publish() to return only after receiving an acknowledgement that the published event has been received by the Cloud.
Particle.publish(“Before sleep”, mainPayload, WITH_ACK);
//Particle.process(); // process queues before sleep
Particle.publish(“After sleep”, mainPayload);
If I use the delay and process, it seems to work most of the time but I’d rather have a deterministic solution and save 500 ms.
I have WITH_ACK but it doesn’t seem to wait like the doc says, I never receive a “before sleep” message at the console. Why not?