Created
September 8, 2017 15:59
-
-
Save mikebranstein/13c4bcce7401a2f17a456ba9988c8e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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