I have seven Particle.Publish() statements at startup one after the other. Sometimes the last two don’t get fired. I added some delay (500) after each statement, and it seems to fix the issue, but I want to avoid using delay statement for this purpose if possible.
What is the best approuch to deal with this issue?
And depending on your system version, on startup the device will - by itself - shoot one, two or even three (if you enabled the reset reason to be published) system events which are counted against this limit too.
The best practice would be to avoid consecutive event publishes and rather collect the data and publish as one event.