Cloud Communication - Publish

Cloud Communication

iot_cloud

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

1569446342143

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)

Documentation

Updated: