Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Created September 20, 2017 12:23
Show Gist options
  • Select an option

  • Save mikebranstein/55ba38b7a9c5169f80eae2b070fe2861 to your computer and use it in GitHub Desktop.

Select an option

Save mikebranstein/55ba38b7a9c5169f80eae2b070fe2861 to your computer and use it in GitHub Desktop.

Revisions

  1. mikebranstein created this gist Sep 20, 2017.
    6 changes: 6 additions & 0 deletions weather-monitor-loop.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    void loop() {
    char* json = weatherService.getWeatherData();
    Particle.publish("w", json, PRIVATE);

    System.sleep(weatherService.getRainGaugeSignalPin(), FALLING, MINUTES_TO_SLEEP);
    }