Cloud Communication - Publish
Cloud Communication
Events Part 1: Publishing Events
- Events are messages sent from an Argon to the cloud as often as you choose
- Events are private (viewable by only by you and devices in your account)
- Events can be accessed in Particle console, app, or by other devices (subscribing)
Events in Particle Console
Publish Syntax
Particle.publish(<<EVENT_NAME>>, <<EVENT_VALUE>>);
Example
Particle.publish("lightValue", "bright");
Particle.publish("tempFahr", String(85.9));
- Names and values must always be strings
- Should only publish 1 event / sec (or burst of 4 events in 1 sec)