Device is Offline even serial port screen says Ready (ping: 23ms) urgent!

Device is Arduino Uno with ESP 01 WiFi module.


But still says offline in the console…
I have a school project to this tuesday so it’s really urgent please help…
(I tried port 80 too still same)


/*************************************************************
  WARNING!
    It's very tricky to get it working. Please read this article:
    http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware

  This is a simple demo of sending and receiving some data.
  Be sure to check out other examples!
 *************************************************************/

// Template ID, Device Name and Auth Token are provided by the Blynk.Cloud
// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID           "TMPL0XjV1tQR"
#define BLYNK_DEVICE_NAME           "Quickstart Device"
#define BLYNK_AUTH_TOKEN            "myToken"


// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial


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

char auth[] = BLYNK_AUTH_TOKEN;

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "myID";
char pass[] = "mYpass";

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

BlynkTimer timer;

// This function is called every time the Virtual Pin 0 state changes
BLYNK_WRITE(V0)
{
  // Set incoming value from pin V0 to a variable
  int value = param.asInt();

  // Update state
  Blynk.virtualWrite(V1, value);
}

// This function is called every time the device is connected to the Blynk.Cloud
BLYNK_CONNECTED()
{
  // Change Web Link Button message to "Congratulations!"
  Blynk.setProperty(V3, "offImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations.png");
  Blynk.setProperty(V3, "onImageUrl",  "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations_pressed.png");
  Blynk.setProperty(V3, "url", "https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk/how-quickstart-device-was-made");
}

// This function sends Arduino's uptime every second to Virtual Pin 2.
void myTimerEvent()
{
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V2, millis() / 1000);
}

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", 8080);
  //Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Setup a function to be called every second
  timer.setInterval(1000L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}


You are trying to connect to legacy Blynk server
Use that

Blynk.begin(auth, ssid, pass);
1 Like

Did you mean “Blynk.begin(auth, wifi, ssid, pass);” I am getting Invalid auth token error with that(I am pretty sure it’s not wrong).

You need to tell us whether you are using Blynk Legacy or Blynk IoT

Either way, you are using the wrong Blynk library. If you are using Legacy then you should be using 0.6.1
If you are using Blynk IoT then it should be 1.0.1

1 Like

I tried to use IoT image
it says 1.0.1 is there any way to update properly?

image
I guess I accidently installed Chinese one too so this can be problem I am gonna try to remove this.

You need to explain in detail how you created your Auth token. That will tell us if you are using Legacy or IoT

Pete.

1 Like

From blynk.cloud I pressed + Device and selected Quickstart Device
thats it. Is it legacy?

If you used Blynk.cloud then you are using Blynk IoT

Pete.

1 Like


And it is online
I deleted Chinese version from My Documents/Arduino/libraries now it’s working thank you <3
Edit: It comes online for a sec when restart and then wents offline again… i don’t know why.

What Blynk.begin command are you now using?

How are you powering your ESP-01 ?

Pete.

1 Like

“Blynk.begin(auth, wifi, ssid, pass);”
3.3V to VCC and CH_EN pins image
From Arduino uno to Bread Board

Assembling the components on a breadboard isn’t a great idea, they are notorious for poor quality connections.

Also, it’s a good idea to power the ESP-01 with a separate psu, with shared ground.

But, if you really want a reliable result then throw this hardware away and use a NodeMCU or ESP32 dev board.

Pete.

1 Like

I am doing this for school project which deadline is this tuesday so I am not really looking for that reliable results but thx for the future projects it’s gonna stay on my mind. For this one I need to complete this with these unfortunately :frowning: I am gonna try again and again and again…