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

Connecting to blynk.cloud:443 - Secure connection failed

Before creating the topic

  1. Search forum for similar topics
    This is similar. Attempted update of existing Arduino libraries but the issue wasn’t solved
    Blynk.cloud:443 secure connection failed error 702 - #27 by MrxMob
  2. Check docs and help
    Followed the WiFi Provisioning guide
  3. Add details :
    • Hardware model + communication type.
    ESP-WROOM-32D - WiFi
    • Smartphone OS (iOS or Android) + version
    Huawei P30 EMUI 11
    • Blynk server or local server
    blynk.cloud:443
    • Blynk Library version
    1.0.1
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.



// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID       "TMPLkptjpWO0"
#define BLYNK_DEVICE_NAME       "IrisWifiRF"

#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’m trying to follow the WiFi Provisioning example.
The device manages to connect to the router but cannot connect to the server via TLS.

Secure connection failed
[51847] Connecting to blynk.cloud:443

It would be useful to see your entire serial output from boot-up, and to see what was shown in the serial monitor during the provisioning process.

You haven’t uncommented a board type, so do the custom board settings in Settings.h match the GPIOs on your particular board?

You should read the “Defining your physical switch and LED” section of this tutorial for more info…

You will then be able to clear the provisioned credentials by pressing the physical switch for 10 seconds, and re-provision the board then post the serial output that results from that process.

Pete.

Hello Pete,

Thank you for your reply.

I had already remmaped the LED and reset button for my board. I can confirm the the reset was successful, the LED played a pleasant breathing pattern.
I don’t have access to the project at the moment, but I will post again on Monday with the full debug output.

Thanks again,
George

Hello again,

You can check the full log bellow. Local network details have been redacted.
This is the same WiFi network/subnet where the mobile phone has normal internet access.
Thanks again for your time.

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on ESP32

[287] --------------------------
[287] Product:  IrisWifiRF
[287] Firmware: 0.1.0 (build Apr  4 2022 08:15:28)
[297] Device:   ESP32 @ 240MHz
[297] MAC:      30:AE:A4:9B:E6:2C
[298] Flash:    4096K
[308] ESP sdk:  v4.4-beta1-189-ga79dc75f0a
[308] Chip rev: 1
[308] Free mem: 261320
[308] --------------------------
[309] INIT => WAIT_CONFIG
[2927] AP SSID: Blynk IrisWifiRF-9E414
[2927] AP IP:   192.168.4.1
[2928] AP URL:  blynk.setup
[30451] WAIT_CONFIG => CONFIGURING
[33235] Sending board info...
[33329] Scanning networks...
[38650] Found networks: 8
[53264] Applying configuration...
[53265] WiFi SSID: *** Pass: ***
[53265] Blynk cloud: oM87nUejTyg9yUH6GmVDqU1VXh9IRYyX @ blynk.cloud:443
[53278] CONFIGURING => SWITCH_TO_STA
[53280] Switching to STA...
[54386] SWITCH_TO_STA => CONNECTING_NET
[54386] Connecting to WiFi: ***
[57000] Using Dynamic IP: **.**.**.**
[57000] CONNECTING_NET => CONNECTING_CLOUD
[57010] Connecting to blynk.cloud:443
[57286] Secure connection failed
[62016] Connecting to blynk.cloud:443
[62290] Secure connection failed
[67020] Connecting to blynk.cloud:443
[67290] Secure connection failed
[72030] Connecting to blynk.cloud:443
[72294] Secure connection failed
[77034] Connecting to blynk.cloud:443
[77267] Secure connection failed
[82037] Connecting to blynk.cloud:443
[82272] Secure connection failed
[87002] Timeout
[87002] Last error code: 702
[87005] Configuration stored to flash
[87005] CONNECTING_CLOUD => ERROR
[97005] Restarting after error.
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (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

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

[219] --------------------------
[219] Product:  IrisWifiRF
[219] Firmware: 0.1.0 (build Apr  4 2022 08:15:28)
[230] Device:   ESP32 @ 240MHz
[230] MAC:      30:AE:A4:9B:E6:2C
[230] Flash:    4096K
[230] ESP sdk:  v4.4-beta1-189-ga79dc75f0a
[241] Chip rev: 1
[241] Free mem: 261284
[241] --------------------------
[241] INIT => WAIT_CONFIG
[2850] AP SSID: Blynk IrisWifiRF-9E414
[2850] AP IP:   192.168.4.1
[2851] AP URL:  blynk.setup

Best regards,
George

Can you confirm that you’re connecting to the internet via a domestic router, not a hotspot on a phone or via a business WiFi network?

If so, have you tried restarting your router?

Can you ping blynk.cloud from a computer connected to the same network?

Pete.

Hello Pete,

At the moment I’m testing via a business network and also tried a mobile WiFi hotspot (different from the mobile running the app).
I’ll try to get the project home to try there.

Concerning the other points, I’ve restarted the business WiFi, pinged and also tracerouted blynk.cloud.
Ping seemed ok and traceroute stopped at the cloud service on France.
My console bottom right shows fra1.

Thanks again for your time.

My guess is that the business network firewall is blocking the Blynk traffic, and some hotspot software and/or mobile ISPs will do the same thing.

Pete.

I’ve just tested on a brand new modem, fresh from factory reset, direct connection to a domestic line.
Also, reset the Blynk device.
Same story, cannot connect to the cloud.

I’ve contacted sales, since this was a test for a commercial project.

Thanks for your help Pete.

Hello Pete,

Updating the Blynk library directly from Github resolved the issue.
The latest commit was 24 days ago, so about mid-March, while the 1.0.1 version commonly available dates back to July 2021.

Best regards,
George

1 Like