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.