Error compiling for board Arduino Uno WiFi Rev2.

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.

#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
#define EVENT_NAME “xxx” // Name of your event name, set when you are creating the applet

WiFiSSLClient client;
IFTTTMaker ifttt(KEY, client);

void setup() {


// Attempt to connect to Wifi network:
Serial.print(“Connecting Wifi: “);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
Serial.println(“WiFi connected”);
Serial.println("IP address: ");
IPAddress ip = WiFi.localIP();

//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


void loop() {

Any help is greatly appreciated!

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.