Blynk 2.0 USB serial: "Device offline"

Hello guys, I need help with my testing on blynk 2.0, i started working on it 2 days ago.

i am having issues with the Arduino connecting to the app, its always offline
(when i used blynk legacy everything was working fine)

this is the cmd script

Connecting device at COM3 to blynk.cloud:80...
OpenC0C("\\.\COM3", baud=9600, data=8, parity=no, stop=1) - OK
Connect("blynk.cloud", "80") - OK
InOut() START
DSR is OFF
#define BLYNK_TEMPLATE_ID "TMPL-C46f_yx"
#define BLYNK_DEVICE_NAME "RGB ROOM"
#define BLYNK_AUTH_TOKEN "CrBmJYWtb0Drq4YYuSWsr__-yK7AnNGt"
#define BLYNK_PRINT DebugSerial
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX

#include <BlynkSimpleStream.h>

char auth[] = BLYNK_AUTH_TOKEN;


void setup()
{
  DebugSerial.begin(9600);
  Serial.begin(9600);
  Blynk.begin(Serial, auth);
}

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

the code

Please don’t post screenshots like this.

Copy and paste the code and put triple backticks at the beginning and end of the code so that it displays correctly.
Triple backticks look like this:
```

You should do the same when posting terminal or serial output.

Pete.

sorry,

i edited the post

I’m assuming that you don’t have an FTDI adapter attached to you debug serial port?

What version of the Blynk library are you using?

Pete…

No i dont have the ftdi
The library version is 1.1.0

I guess you mean 1.0.1
Take a look at the compiler output and check that this is the version that’s actually being used, and that it’s not finding an earlier version.

That makes debugging very difficult.

Pete.

i found that i can use an arduino uno as FTID

and this is the version
image

Library has been updated, now the latest version is 1.1.0

1 Like

so this is the Debug ports output

[1316] Redirecting to sgp1.blynk.cloud:80
[1329] Connecting...

and keeps repeating

hey i have an update i found that its using 1.0.1
image

Thanks, I missed that!

Pete.

1 Like

So why don’t you edit your batch script to use this URL rather than simply blynk.cloud

Pete.

Let me see

yes its working!!!

So what did you change?