/IFTTTSaveValue.ino Secret
Last active
May 20, 2016 00:08
This file contains hidden or 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
#include "IFTTTESP8266.h" | |
#define EVENT "Your_Maker_Event_Name_here" // Put here your Maker Event Name | |
#define KEY "Your_Key_here" // Put here your IFTTT key | |
#define WIFISSID "ssid" | |
#define PASSWORD "password" | |
IFTTT client(KEY); | |
void setup(){ | |
Serial.begin(115200); | |
delay(10); | |
client.wifiConnection(WIFISSID, PASSWORD); | |
} | |
void loop(){ | |
String value = String(analogRead(A0)); | |
client.add(value1); // specifies the args of type "String" | |
//Send value can specify up to three | |
client.add(value2); // optional | |
client.add(value3); // optional | |
client.sendAll(EVENT); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment