i have my esp32 for my project and I coded my project and show cased it. But after 3months I am trying to do same thing with esp32 connecting with blynk it shows like
Connecting to Airtel fiber
19:07:30.775 → [3180] Connected to WiFi
19:07:30.775 → [3180] IP: 192.168.1.12
19:07:30.809 → [3181]
19:07:30.809 → ___ __ __
19:07:30.839 → / _ )/ /_ _____ / /__
19:07:30.871 → / _ / / // / _ / '/
19:07:30.904 → ///_, /////_
19:07:30.936 → /__/ v0.5.8 on ESP32
19:07:30.967 → [3303] Connecting to blynk-cloud.com:80
and goes on I searched on forum they told me the use ping in the terminal it reacted like
C:\Users\cw_59>ping blynk-cloud.com
Ping request could not find host blynk-cloud Please check the name and try again.
what should I do now please explain briefly I add my code below
#define BLYNK_TEMPLATE_ID "*****"
#define BLYNK_TEMPLATE_NAME "*******"
#define BLYNK_AUTH_TOKEN "*******"
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Airtel fiber"; // type your wifi name
char pass[] = "******"; // type your wifi password
int smokeA0 = 13;
int data = 0;
int sensorThres = 200;
BlynkTimer timer;
void sendSensor(){
int data = analogRead(smokeA0);
Blynk.virtualWrite(V0, data);
Serial.print("Pin A0: ");
Serial.println(data);
if(data > 20){
//Blynk.email("test@gmail.com", "Alert", "Gas Leakage Detected!");
Blynk.logEvent("gas_alert","Gas Leakage Detected");
}
}
void setup(){
pinMode(smokeA0, INPUT);
Serial.begin(9600);
//Blynk.begin(auth, ssid, pass);
Blynk.begin(auth, ssid, pass, "blynk-cloud.com",80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,12), 80);
//dht.begin();
timer.setInterval(2500L, sendSensor);
}
void loop(){
Blynk.run();
timer.run();
}
help me