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.
Particle IO - IFTTT Google Drive Spreadsheet Update Example
// 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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment