BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Edgent_ESP32 example not connecting to Blynk with error

I have reinstalled Arduino IDE with all new libraries including only newest Blynk (1.0.1) then open the example. So this example is from Newest Blynk 1.0.1 lib, not from previous Blynk lib.

Do you have any example working for you? I have ordered my ESP32 DEV board from here (30 pins): ESP 32S ESP WROOM 32 ESP32 ESP 32 Bluetooth and WIFI Dual Core CPU with Low Power Consumption MCU ESP32 CAM OV2640 Camera Module|Integrated Circuits| - AliExpress

Maybe I should use esptool to erase my ESP32 flash :)? I am going to do it anyway

The device is now awaiting provisioning.
Open the app and hit the three horizontal lines in the top right of the screen then + Add Device.
Follow the on-screen instructions and the device will connect and appear in your app and web console (provided you enter the correct WiFi credentials).

Pete.

Yes, of course I have follow your steps so that in the serial log, it shows all steps with info about my Wifi SSID and Password provided. I have done these steps successfully for my ESP8266 and previous Blynk rev. (1.0.0) without any issue.

I have erased my ESP32 Dev board with esptool and still received message as below after selecting my Wifi SSID (VNNO) and entering password (I changed the password in the text below for security reason). Any thing that I should do next? Thanks again for your help so far.

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0
[210] Using default config.

*>[210] *

  • ___ __ __*
  • / _ )/ /_ _____ / /__*
  • / _ / / // / _ / '_/*
  • ///_, /////_*
  •    /___/ v1.0.1 on ESP32*
    

[220] --------------------------
[221] Product: BasementESP32
[221] Firmware: 0.1.0 (build Feb 7 2022 21:21:07)
[231] Device: ESP32 @ 240MHz
[231] MAC: AC:67:B2:35:B4:18
[231] Flash: 4096K
[242] ESP sdk: v4.4-beta1-189-ga79dc75f0a
[242] Chip rev: 1
[242] Free mem: 261452
[242] --------------------------
[253] INIT => WAIT_CONFIG
[2861] AP SSID: Blynk BasementESP32-1BB09
[2861] AP IP: 192.168.4.1
[2862] AP URL: blynk.setup
[16415] WAIT_CONFIG => CONFIGURING
[20246] Sending board info…
[20373] Scanning networks…
[25295] Found networks: 3
[40013] Applying configuration…
[40013] WiFi SSID: VNNO Pass: MyPassword
[40013] Blynk cloud: wvO2wJKbiZB853LrD1e1zAdDCYbE1pyy @ blynk.cloud:443
[40027] CONFIGURING => SWITCH_TO_STA
[40029] Switching to STA…
[41187] SWITCH_TO_STA => CONNECTING_NET
[41187] Connecting to WiFi: VNNO
[46151] Using Dynamic IP: 192.168.1.130
[46151] CONNECTING_NET => CONNECTING_CLOUD
[46161] Connecting to blynk.cloud:443
[46429] Secure connection failed
[51169] Connecting to blynk.cloud:443
[51396] Secure connection failed
[56176] Connecting to blynk.cloud:443
[56403] Secure connection failed
[61183] Connecting to blynk.cloud:443
[61412] Secure connection failed
[66192] Connecting to blynk.cloud:443
[66420] Secure connection failed
[71200] Connecting to blynk.cloud:443
[71428] Secure connection failed
[76158] Timeout
[76158] Last error code: 702
[76161] Configuration stored to flash
[76161] CONNECTING_CLOUD => ERROR

I am using Microsoft Teams, Teamviewer, Facebook messenger and available now. Is it possible for you to support via one of those :)?

I don’t provide support, other than via this forum.

It’s also very difficult to help you if you keep writing random responses that aren’t related to the things that I write.

My guess is that you are entering the wrong WiFi password.

Pete.

I believe that I tried and replied all your suggestions (except one asked for example that I supposed to ask [MrxMob](I replied his message).

I cannot provide wrong password because I created this and I have just re enter this password to this computer (after disconnecting it from the wifi) :slight_smile:

Show me where youve posted your serial monitor output which says that it has detected the button being pressed, and 10 seconds later clears the credentials andreboots the device and puts it into provisioning mode. I can’t see this.

Pete.

The board you say you’ve ordered is a WROOM and the board type you’ve un-commented is for a WROVER board, which has a button on GPIO15 and RGB LEDs on pins 0, 2 & 4 in the standard Settings.h file…

#if defined(USE_WROVER_BOARD)

  #define BOARD_BUTTON_PIN            15
  #define BOARD_BUTTON_ACTIVE_LOW     true

  #define BOARD_LED_PIN_R             0
  #define BOARD_LED_PIN_G             2
  #define BOARD_LED_PIN_B             4
  #define BOARD_LED_INVERSE           false
  #define BOARD_LED_BRIGHTNESS        128

I seriously doubt if your board has this configuration.

Pete.

As mentioned above. I could see the message showing that the BOOT button has been pressed when I tried to clear previous Wifi setting (I tried and it worked with Blynk 1.0.0).

But then after successfully reset my Wifi setting, I cannot provide Wifi credentials with error message posted. I also cannot see any message if I press BOOT button now, I guess the message would only appear if it has been successfully saved with Wifi credentials.

FYI.: I have used the same Wifi credentials for more than a year. My NodeMcu board works fine with Blynk :slight_smile:

I think you’ll find that making this change…

without fully understand that you aren’t using a WROVER board, and even if you were, the pin assignments may be different, has caused the button to stop working, because as I said previously…

Your first step has to be to understand your board settings, and have a Settings.h configuration that matches that.
Only then will you be able to know that you’ve cleared the stored settings, and that the board is in the correct mode to be provisioned.

Pete.

Thanks, I will go through it one more time :slight_smile:

This is my ESP32 board (ESP-WROOM-32) while waiting for config.: Blynk esp32 failed to assign wifi credentials - YouTube, same example uploaded

It is blinking and I tried again with my Wifi SSID and password. I got the same error as above (after failure, it reset itself and ask for configuration):

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
*ets_main.c 371 *
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_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:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0

*>[235] *

  • ___ __ __*
  • / _ )/ /_ _____ / /__*
  • / _ / / // / _ / '_/*
  • ///_, /////_*
  •    /___/ v1.0.1 on ESP32*
    

[245] --------------------------
[245] Product: BasementESP32
[246] Firmware: 0.1.0 (build Feb 7 2022 18:59:24)
[256] Device: ESP32 @ 240MHz
[256] MAC: 7C:9E:BD:06:81:EC
[256] Flash: 4096K
[257] ESP sdk: v4.4-beta1-189-ga79dc75f0a
[267] Chip rev: 1
[267] Free mem: 261284
[267] --------------------------
[267] INIT => WAIT_CONFIG
[2884] AP SSID: Blynk BasementESP32-76C1D
[2884] AP IP: 192.168.4.1
[2885] AP URL: blynk.setup
[20189] WAIT_CONFIG => CONFIGURING
[32562] Sending board info…
[32634] Scanning networks…
[37956] Found networks: 11
[53474] Applying configuration…
[53474] WiFi SSID: VNNO Pass: Planetvegen18A
[53474] Blynk cloud: oYOAqdYe_GXTQziTozAgvECNmygJA1oV @ blynk.cloud:443
[53488] CONFIGURING => SWITCH_TO_STA
[53490] Switching to STA…
[54645] SWITCH_TO_STA => CONNECTING_NET
[54645] Connecting to WiFi: VNNO
[58792] Using Dynamic IP: 192.168.1.128
[58792] CONNECTING_NET => CONNECTING_CLOUD
[58802] Connecting to blynk.cloud:443
[59070] Secure connection failed
[63810] Connecting to blynk.cloud:443
[64076] Secure connection failed
[68817] Connecting to blynk.cloud:443
[69091] Secure connection failed
[73820] Connecting to blynk.cloud:443
[74049] Secure connection failed
[78829] Connecting to blynk.cloud:443
[79051] Secure connection failed
[83830] Connecting to blynk.cloud:443
[84051] Secure connection failed
[88801] Timeout
[88801] Last error code: 702
[88802] Configuration stored to flash
[88803] CONNECTING_CLOUD => ERROR
[98804] Restarting after error.
ets Jun 8 2016 00:22:57

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:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0

*>[232] *

  • ___ __ __*
  • / _ )/ /_ _____ / /__*
  • / _ / / // / _ / '_/*
  • ///_, /////_*
  •    /___/ v1.0.1 on ESP32*
    

[242] --------------------------
[243] Product: BasementESP32
[243] Firmware: 0.1.0 (build Feb 7 2022 18:59:24)
[253] Device: ESP32 @ 240MHz
[253] MAC: 7C:9E:BD:06:81:EC
[253] Flash: 4096K
[254] ESP sdk: v4.4-beta1-189-ga79dc75f0a
[264] Chip rev: 1
[264] Free mem: 261284
[264] --------------------------
[265] INIT => WAIT_CONFIG
[2881] AP SSID: Blynk BasementESP32-76C1D
[2881] AP IP: 192.168.4.1
[2882] AP URL: blynk.setup

That’s all very interesting, but once again, you aren’t addressing the issues that I’ve said you need to focus on.

It would also be a good idea to shorten your device name in the template, then update your sketch accordingly, as this SSID is quite long…

Pete.

My App ID is only “BasementESP32”, but Blynk added it automatically.

I have tried with another Blynk example: ESP32_WiFi, this worked just fine for me for 541 minutes then stuck :slight_smile: (frozen, I think) Even if I tried to use watchdog to reset but it did not help. Could this be my ESP32 board issue? I have two boards, it seems to behavior in the same way.

Yes, I know that.

I’m going to take a step back from this topic, as you don’t seem to be interested in doing the things I suggest.

Pete.

I should have some freedom to investigate around, try with different possibilities in stead of just wait and follow your instructions :). Different tries did not give me better result so I did not care to post it here to mess up the topic.

The only suggestion I have not tried was having a shorter AP SSID, if I remember correctly. And yes, I have just done that (#define BLYNK_DEVICE_NAME “BMx”) with same error happened (as console log below).

*>[216] *

  • ___ __ __*
  • / _ )/ /_ _____ / /__*
  • / _ / / // / _ / '_/*
  • ///_, /////_*
  •    /___/ v1.0.1 on ESP32*
    

[226] --------------------------
[226] Product: BMx
[226] Firmware: 0.1.0 (build Feb 9 2022 20:54:15)
[237] Device: ESP32 @ 240MHz
[237] MAC: AC:67:B2:35:B4:18
[237] Flash: 4096K
[237] ESP sdk: v4.4-beta1-189-ga79dc75f0a
[248] Chip rev: 1
[248] Free mem: 261428
[248] --------------------------
[248] INIT => WAIT_CONFIG
[2857] AP SSID: Blynk BMx-1BB09
[2857] AP IP: 192.168.4.1
[2858] AP URL: blynk.setup
[37982] WAIT_CONFIG => CONFIGURING
[50586] Sending board info…
[55630] CONFIGURING => WAIT_CONFIG
[85693] WAIT_CONFIG => CONFIGURING
[98341] Sending board info…
[98413] Scanning networks…
[103535] Found networks: 4
[117854] Applying configuration…
[117854] WiFi SSID: VNNO Pass: MyWifiPass
[117854] Blynk cloud: IKRlaiO5wxZgZbB676hjR53-OeDyQPCa @ blynk.cloud:443
[117868] CONFIGURING => SWITCH_TO_STA
[117869] Switching to STA…
[119027] SWITCH_TO_STA => CONNECTING_NET
[119027] Connecting to WiFi: VNNO
[124713] Using Dynamic IP: 192.168.1.130
[124713] CONNECTING_NET => CONNECTING_CLOUD
[124723] Connecting to blynk.cloud:443
[124977] Secure connection failed
[129727] Connecting to blynk.cloud:443
[129957] Secure connection failed
[134728] Connecting to blynk.cloud:443
[134953] Secure connection failed
[139733] Connecting to blynk.cloud:443
[139960] Secure connection failed

You have as much freedom as you want, but as far as I’m aware from your feedback, you still haven’t sorted-out the pin assignments in Settings.h and provided serial output which shows that the button is responding correctly and allowing you to clear the saved credentials.
That’s despite me asking you to do this on multiple occasions.
So I’d rather spend my time helping community members who are interested in doing the things I ask them to, and feeding back with the results.

Good luck with your project.

Pete.

1 Like

Thanks a lot for your help so far. Really appreciate that.

I understood that you are supporting many topic so I have explained twice the reason that I could not provide serial output when I push BOOT button any longer since I did push BOOT button but nothing different as the log I posted (after I have reset esp32 with esptool). I have seen another message showing that I did push BOOT button but only before I erased my esp32 (I could input credentials using Blynk 1.0.0 before). The reason for not showing anything different could be that my esp32 has not accepted credentials so it does not show any info. when I pust BOOT button.

Regarding pin assignment, I have mentioned that I am using ESP-WROOM-32. I thought that I have posted this clip: Blynk esp32 failed to assign wifi credentials - YouTube, 3 days ago in this thread.

Anyway, I am ok with esp8266 Blynk and will come back with ESP32 later.

Once again, many thanks

Thuy

You are making an incorrect assumption about the button press having no effect when there are no stored credentials.

If you do not see this message in your serial monitor when you press the button…

Hold the button for 10 seconds to reset configuration...

then your pin assignment is incorrect. Until you solve this issue you will not make any progress with your problem.

I would you suggest that you read this…

and make the appropriate changes to your pin assignments.

Pete.