Cannot reaching ping

it has connected to wifi but it didn’t get the ping
error
Someone plzz help
Here is my code =



#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "f5836b45973e43a1b4c8d6ed42aa5417";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Juan Felix";
char pass[] = "1234567890";

// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1

// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>

SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);

// Attach virtual serial terminal to Virtual Pin V1
WidgetTerminal terminal(V1);

// You can send commands from Terminal to your hardware. Just use
// the same Virtual Pin as your Terminal Widget
BLYNK_WRITE(V1)
{

  // if you type "Marco" into Terminal Widget - it will respond: "Polo:"
  if (String("Marco") == param.asStr()) {
    terminal.println("You said: 'Marco'") ;
    terminal.println("I said: 'Polo'") ;
  } else {

    // Send it back
    terminal.print("You said:");
    terminal.write(param.getBuffer(), param.getLength());
    terminal.println();
  }

  // Ensure everything is sent
  terminal.flush();
}

void setup()
{
  // Debug console
  Serial.begin(9600);
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  //Blynk.begin(auth, wifi, ssid, pass);
  // You can also specify server:
  Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 8442);
 // Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8442);

  // This will print Blynk Software version to the Terminal Widget when
  // your hardware gets connected to Blynk Server
  terminal.println(F("Blynk v" BLYNK_VERSION ": Device started"));
  terminal.println(F("-------------"));
  terminal.println(F("Type 'Marco' and get a reply, or type"));
  terminal.println(F("anything else and get it printed back."));
  terminal.flush();
}

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

Not without a wee little bit more details :stuck_out_tongue:

last time i got the error because i didn’t connect rx to pin 3 and tx to pin 2

after i connect it, i got this thing :joy:
why did it happen?

Well, between that and the “Arduino UNO” reference in the screenshot, we now know you are probably using an ESP as a shield…

Search this forum for keywords like Arduino, UNO, ESP-01, Shield… and start reading them all… each and every connection, tip and trick as been mentioned many times over.

what does it mean i use esp as a shield ?
Then should i use it as a modem ?

It is just a term referencing linking other hardware to an Arduino, typically, but not necessarily as a added on top circuit board…

What you are doing is using the ESP as a Serial to WiFi adapter. You just need to wire it, power it and configure it properly…

Search this forum and look at this document…

http://help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware

so you mean that i should buy esp8266 shield ??

No… it is just commonly used terminology… did you even look at the link I posted? You are using an ESP-01 right?

i have already looked it,
Yes i use ESP-01(the black one of esp8266)

Then wire it up similar to that document… but use SoftwareSerial for the UNO on whatever pins you chose, 2&3 or 10&11 are commonly used… DO NOT use the TX RX pins on the UNO, those are tied into the USB and needed for programming and the IDE Serial Monitor.

And cross the connections between devices… TX to RX and visa versa.

I am going :sleeping::sleeping: now… so happy searching and reading…

I have crossed the connections, btw what is visa versa ?? :smile:

vice ver·sa
ˌvīs(ə) ˈvərsə/Submit
adverb
with the main items in the preceding statement the other way around.
“RX from Arduino goes to TX on ESP and vice versa”