Cant connect any device Blynk 2.0

Hi, i’m trying to migrate my project from legacy, but can’t even make a single device connect to the server.

I used the example in library 1.1

First just try to add new device throught the app, but got timed out, later set the ssid, pass and token into the code, but always got the same result
21:48:12.216 → [622] --------------------------
21:48:12.216 → [625] Product: frontDoor
21:48:12.216 → [627] Firmware: 0.1.0 (build Jun 13 2022 21:47:41)
21:48:12.216 → [632] Device: NodeMCU @ 160MHz
21:48:12.216 → [635] MAC: 84:F3:EB:C9:99:6E
21:48:12.216 → [638] Flash: 4096K
21:48:12.216 → [640] ESP core: 2.7.4
21:48:12.216 → [642] ESP SDK: 2.2.2-dev(38a443e)
21:48:12.216 → [645] Boot Ver: 31
21:48:12.216 → [647] Boot Mode:1
21:48:12.216 → [648] FW info: 448208/1646592, MD5:f74a1365b36a0af28f601a8de12dcc44
21:48:12.348 → [780] Free mem: 30784
21:48:12.348 → [780] --------------------------
21:48:12.348 → [780] Firmware is preprovisioned
21:48:12.348 → [782] INIT => CONNECTING_NET
21:48:12.348 → [786] Connecting to WiFi: RBCorp
21:48:20.939 → [9374] Using Dynamic IP: 192.168.143.50
21:48:20.939 → [9374] CONNECTING_NET => CONNECTING_CLOUD

Is it the example sketch or have you modified it ?
Have you copy pasted the template id n device name from the web console ? It will be generated when you first created the template.

Post your code properly formatted with triple backticks( ```) looks like this.

The simplest method is not to use the Edgent sketch, and I certainly wouldn’t recommend adding ssid, pass & token to the Edgent sketch.

If you do want to use Edgent then you should start by reading this, as you may have a pin conflict in your Settings.h for the board type you are using…

Pete.

I’ve modified just with the template id and device name… as it doesn’t work i’ve hard coded the auth and ssid.

On both cases it got stucked on CONNECTING_NET => CONNECTING_CLOUD

I’ve tried with nodemcu v2 and wemos d1 mini

// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLAVvjVjBn"
#define BLYNK_DEVICE_NAME "frontDoor"

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD
//#define USE_WEMOS_D1_MINI

#include "BlynkEdgent.h"

void setup()
{
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

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

But that’s the Edgent example sketch.
As I said earlier…

Pete.

Yes, as i said, i’ve just used the sketch, add my template id and name and tried to connect

Have you pressed the GPIO0 button for 10 seconds to clear the credentials and re-provisioned via the app?

Pete.

Yes, the app recognize the device, connect to AP, add new credentials, and then sait it cannot connect… while this the serial monitor show the log I post above

This worries me!

Have you tried rebooting your router?

Pete.

Yes, i’ve rebooted the router, tried another connection, used my phone as hotspot.
As soon as I get home, I’ll try with an esp32, to check if i got the same error