Can't connect new device in Blynk 2.0 application

I’m trying to add a new device in the blynk 2.0 app for my IoT project but it always ends up with a message “Your device couldn’t connect to the network” after connecting to the wifi.

I’m currently using ESP32 (NodeMCU ESP-32S). I have already installed all the necessary libraries such as Blynk library (version 1.0.1) and board manager for the esp32.

I have installed the Blynk 2.0 app on an android phone with android version 11.

I have uploaded the sample sketch to my board which is the “Edgent_ESP32”



// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLxRG2kCKd"
#define BLYNK_DEVICE_NAME "Capstone V1"

#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_WROVER_BOARD
//#define USE_TTGO_T7

#include "BlynkEdgent.h"

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

  BlynkEdgent.begin();
}

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


I used the custom board since I am not sure of the necessary pins to be changed in settings.h

During compilation I get this message from the arduino IDE


In file included from C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\BlynkEdgent.h:8,
                 from C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Edgent_ESP32.ino:17:
C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Settings.h:30:4: warning: #warning "Custom board configuration is used" [-Wcpp]
   #warning "Custom board configuration is used"
    ^~~~~~~
In file included from C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\BlynkEdgent.h:25,
                 from C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Edgent_ESP32.ino:17:
C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Console.h: In lambda function:
C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Console.h:30:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     );
     ^
C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Console.h: In lambda function:
C:\Users\YOW\AppData\Local\Temp\arduino_modified_sketch_770192\Console.h:45:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     );
     ^

But either way the code is still uploaded to the esp32

This is the message that appear in the serial monitor when I try to add a new device in the blynk2.0 application


[84182] WAIT_CONFIG => CONFIGURING
[86973] Sending board info...
[87092] Scanning networks...
[92014] Found networks: 2
[100315] Applying configuration...
[100315] WiFi SSID: Network Error Pass: 244466666
[100315] Blynk cloud: xXxrADfD6rXfEqe3NWfPcBtu95W5Iblf @ blynk.cloud:443
[100329] CONFIGURING => SWITCH_TO_STA
[100331] Switching to STA...
[101441] SWITCH_TO_STA => CONNECTING_NET
[101441] Connecting to WiFi: Network Error
[104239] Using Dynamic IP: 192.168.1.11
[104239] CONNECTING_NET => CONNECTING_CLOUD
[104249] Connecting to blynk.cloud:443
[104841] Secure connection failed
[109251] Connecting to blynk.cloud:443
[109693] Secure connection failed
[114253] Connecting to blynk.cloud:443
[114507] Secure connection failed
[119257] Connecting to blynk.cloud:443
[119587] Secure connection failed
[124267] Connecting to blynk.cloud:443
[124705] Secure connection failed
[129275] Connecting to blynk.cloud:443
[129619] Secure connection failed
[134240] Timeout
[134240] Last error code: 702
[134241] Configuration stored to flash
[134241] CONNECTING_CLOUD => ERROR
[144243] Restarting after error.
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:12804
ho 0 tail 12 room 4
load:0x40080400,len:3032
entry 0x400805e4

>[222] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on ESP32

[233] --------------------------
[233] Product:  Capstone V1
[233] Firmware: 0.1.0 (build Mar 28 2022 23:17:16)
[243] Device:   ESP32 @ 240MHz
[243] MAC:      30:C6:F7:29:C2:FC
[244] Flash:    4096K
[244] ESP sdk:  v4.4-beta1-189-ga79dc75f0a
[254] Chip rev: 3
[255] Free mem: 261420
[255] --------------------------
[255] INIT => WAIT_CONFIG
[2865] AP SSID: Blynk Capstone V1-38122
[2865] AP IP:   192.168.4.1
[2866] AP URL:  blynk.setup


below is the screenshot taken from my android phone

What should I do? please help I really need this for my year end project

You appear to be providing the wrong WiFi password.

Pete.

I am 100% sure that it is correct. I always try to view and re check the wifi password before connecting.

As Pete pointed out the error you are getting is that the password is not correct.

If it can’t connect to the network it cant see the Blynk server.

If you are not willing to accept this and make a change then nobody can help you.

I accepted what pete have said but have you ever asked me how many times I have already retried doing this reconnecting and tried connecting to a different network? I didn’t post this topic just beforehand receiving these problems, I posted this topic after trying different solutions I found in the forums but as you can see there ain’t much out there having the same trouble that I am facing.

So as for everyone to know. These are the things that I have already tried.

  1. Retried at least 5-7 times already adding device/ reconnecting on 2 different wifi network

  2. Tried installing older blynk libraries

  3. Tried re-installing all blynk libraries (deleting from main arduino libraries folder)

  4. Restarting my PC and my android phone.

If you are just going to jump in to conclusion that I am not willing to accept my mistake, then you can’t help anyone. I came here in needing for help not for your hate.

Relax a bit .

We are here to help but you need to take the help and provide information

When I look at your output it clearly says that the password is the error.

I also see that the ssid is empty, perhaps that is the real problem.

[100315] WiFi SSID: Network Error Pass: 244466666

Ok sorry. For clarification my wifi SSID is “Network Error”

Ok that makes more sense.

Where are you located. US, Europe, …

I think I see the problem

   #warning "Custom board configuration is used"

You need to define the board type to be esp32

I’m located in Asia. For additional information, I didn’t have any trouble when using and connecting my nodemcu esp8266 but for this project I will be needing to use my esp32 (nodemcu esp-32s) but as you can see you already know what my problem is.

I am seeing that as the problem too but I have already tried uncommenting the provided boards in the code and tried using the board configuration for esp32 dev tool kit but still no luck. For the custom board I am not sure what the exact pin configuration to be added in the settings.h

did you remove the comment for the line of your device

Please post the code

What version of the blynk libraries do yo have installed?

There is no line which include

#define nodemcu esp-32

The only line which defines a board is,

#define USE_WROVER_BOARD
#define USE_TTGO_T7

And this is from the sample sketch of the blynk library. I have already tried uncommenting each one at a time but still face the same problem

I tried searching online and I have managed to find from github same sketch from the same library having this below

#define USE_ESP32S2_DEV_KIT

I tried using it but still can’t manage to add device on the app same problems and same result.

If you know how the pins are defined on your board you can use the custom board.

Do you know what version of the Blynk libraries you have installed?

I am using the latest library version 1.0.1

There are labels on the pins but I am not sure which is for the button, for the led and etc. I can post a picture of the board if you would like?

is it this one
Screenshot(18)

Yep that’s the board I am using

The additional led is gpio2

There are a few other threads with this same problem have you looked at them ?