Page 1 of 1

Newbie Question- Arduino-iftt

Posted: Sun Mar 03, 2019 5:57 am
by davids1965
Hi all, Could someone please help? I am trying to use ifttt to trigger a email. I have it working on the PC but cannot work out the code to use as a trigger on the ESP32! I can confirm WiFi is working and the unique key and 'event' are not the issue? Below is what I have so far...


#include <ESP8266WiFi.h>
#include "IFTTTWebhook.h"

#define WIFI_SSID "your SSID here"
#define WIFI_PASSWORD "your password here"

#define IFTTT_API_KEY "your key here"
#define IFTTT_EVENT_NAME "your event name here"

void setup() {
Serial.begin(115200);
Serial.println("RUNNING");

WiFi.mode(WIFI_STA);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);

IFTTTWebhook wh(IFTTT_API_KEY, IFTTT_EVENT_NAME);
wh.trigger();
wh.trigger("1");
wh.trigger("1", "2");
wh.trigger("1", "2", "3");
}

void loop() {
}