Edgent_ESP32 example not connecting to Blynk with error

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.