Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Created September 8, 2017 15:59
Show Gist options
  • Save mikebranstein/13c4bcce7401a2f17a456ba9988c8e0c to your computer and use it in GitHub Desktop.
Save mikebranstein/13c4bcce7401a2f17a456ba9988c8e0c to your computer and use it in GitHub Desktop.
void setup() {
// configuration code goes here
}
void loop() {
// this code runs continually in a loop
// add your execution logic here
// the publish() method sends a event to the Particle cloud
// the first parameter is the event name, second is the event data
Particle.publish("weather", "{\"temperature\":83.58}");
// delay pauses execution for 1000 milliseconds
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment