I’m new to Arduino and am doing a project with a gas sensor that sends an email when the value becomes toxic. I’m trying figuring out the email step using IFTTT and downloaded the library. I used the example and I get this error: Error compiling for board Arduino Uno WiFi Rev2.
Code:
#include <IFTTTMaker.h>
/*******************************************************************
- Trigger event at end of the setup *
-
- adapted by Brian Lough *
*******************************************************************/
#include <WiFiSSLClient.h>
#include <WiFi101.h>
//------- Replace the following! ------
char ssid = “xxx”; // your network SSID (name)
char password = “xxx”; // your network key
#define KEY “xxx” // Get it from this page https://ifttt.com/services/maker/settings
#define EVENT_NAME “xxx” // Name of your event name, set when you are creating the applet
WiFiSSLClient client;
IFTTTMaker ifttt(KEY, client);
void setup() {
Serial.begin(115200);
// Attempt to connect to Wifi network:
Serial.print(“Connecting Wifi: “);
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(”.”);
delay(500);
}
Serial.println("");
Serial.println(“WiFi connected”);
Serial.println("IP address: ");
IPAddress ip = WiFi.localIP();
Serial.println(ip);
//triggerEvent takes an Event Name and then you can optional pass in up to 3 extra Strings
if(ifttt.triggerEvent(EVENT_NAME, ssid)){
Serial.println(“Successfully sent”);
} else
{
Serial.println(“Failed!”);
}
}
void loop() {
}
Any help is greatly appreciated!