Argon Particle.Publish() issues

Welcome to the community :+1:
We do see such questions on a regular basis and hence chances are quite hight that you would have found the answer to this common problem in muliple places.
Please do search the forum before (re)asking already answered questions.
That’s also what the forum etiquette would urge you to do (have a read).

Additionally the docs for Particle.publish() would also provide the answer

In your code you are not taking any precautions against violating that rate limit and hence your device does most likely get silenced.

BTW, your code is running default SYSTEM_MODE(AUTOMATIC) hence there is no need (and should be avoided) to repeatedly call Particle.connect() when it’s not warranted.

And finally, I don’t think you actually want/should publish as PUBLIC or what other entity would need to see your events?

1 Like