+
Recipe
Trigger
Action
// SIMPLEST SYNTAX
Particle.publish(String eventName);
// EXAMPLE DEVICE CODE
Particle.publish("Boiling!");
// SYNTAX FOR SENDING DATA
Particle.publish(String eventName, String data);
// EXAMPLE DEVICE CODE
Particle.publish("Boiling!", "212");
// THE COMPLETE VERSION, useful for making events private
Particle.publish(String eventName, String data, int ttl, PRIVATE);
// EXAMPLE DEVICE CODE
Particle.publish("Boiling!", "212", 60, PRIVATE);