Skip to content

Instantly share code, notes, and snippets.

@harrisonhjones
Created October 1, 2015 08:00
Show Gist options
  • Save harrisonhjones/48e229b0df2aee3a3d88 to your computer and use it in GitHub Desktop.
Save harrisonhjones/48e229b0df2aee3a3d88 to your computer and use it in GitHub Desktop.

Revisions

  1. harrisonhjones created this gist Oct 1, 2015.
    14 changes: 14 additions & 0 deletions example.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    // IFTTT Google Drive Spreadsheet Update Example
    // Use with https://ifttt.com/recipes/329485-update-a-spreadsheet-on-event use eventName "VOLTS"
    // Author: Harrison Jones ([email protected])

    char message[180];

    void setup() {}

    void loop() {
    doublevolts = analogRead(A0) * 3.3 / 4096.0;
    sprintf(message, "%f", volts);
    Particle.publish("VOLTS", message);
    delay(2000);
    }