IFTTT + Nodemcu + Blynk web request?

Hello Blynk Community,

I am trying to figure my way around to connect my nodeMCU with blynk and IFTTT. I want that when I press a button on my nodeMCU (Digital Pin 7) it makes a web requests for the IFTTT server and do the β€œthat” function. But I am not able to configure it. Can anyone please explain me briefly how to make a web request from nodeMCU and Blynk from arduino IDE?

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
WiFiClient client;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = β€œ******************************************”;

// Your WiFi credentials.
// Set password to β€œβ€ for open networks.
char ssid[] = β€œ";
char pass[] = "
”;
int inPin = 7;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(inPin, INPUT);
client.print(β€œhttps://maker.ifttt.com/trigger/****/with/key/**************************”);
}

void loop()
{
Blynk.run();
}

Ive tried varios ways , like to include the Wificlient etc but I think I cannot use both Blynk library and WifiClient library.
It would be really helpful if anyone can give me some insight.

Hello. Please use formatting for your code.

1 Like