Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Created September 20, 2017 12:23
Show Gist options
  • Save mikebranstein/55ba38b7a9c5169f80eae2b070fe2861 to your computer and use it in GitHub Desktop.
Save mikebranstein/55ba38b7a9c5169f80eae2b070fe2861 to your computer and use it in GitHub Desktop.
void loop() {
char* json = weatherService.getWeatherData();
Particle.publish("w", json, PRIVATE);
System.sleep(weatherService.getRainGaugeSignalPin(), FALLING, MINUTES_TO_SLEEP);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment