BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

I can not add a device (Blynk 2.0 )

I want to add a device to my App, but it does not connect. The Arduino console send:

[3707] Using default config.
[3710] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on MKR1000

[3716] --------------------------
[3721] Product:  LED Blink MKR1000
[3725] Firmware: 0.1.0 (build Nov 27 2021 00:39:09)
[3729] Device:   MKR1000
[3733] WiFi FW:  19.4.4
[3736] --------------------------
[3740] INIT => WAIT_CONFIG
[3743] Scanning networks...
[4600] Found networks: 4
[5705] AP SSID: Blynk LED Blink MKR1000-516C4
[5708] AP IP:   192.168.4.1
[5711] AP URL:  blynk.setup.local

>Device connected to AP
[47007] Sending board info...
[47312] Sending networks...
[53526] Applying configuration...
[53528] WiFi SSID: AndroidAPE209 Pass: lmario12
[53530] Blynk cloud: zWsnfg8d50whqv34d5E-hEu1FhNkQlfU @ blynk.cloud:443
[53533] WAIT_CONFIG => SWITCH_TO_STA
[53539] Switching to STA...
[54541] SWITCH_TO_STA => CONNECTING_NET
[54543] Connecting to WiFi: AndroidAPE209
[56657] Using Dynamic IP: 192.168.43.66
[56661] CONNECTING_NET => CONNECTING_CLOUD
[56674] Connecting to blynk.cloud:443
[61682] Connecting to blynk.cloud:443
[66686] Connecting to blynk.cloud:443
[71689] Connecting to blynk.cloud:443
[76693] Connecting to blynk.cloud:443
[81702] Connecting to blynk.cloud:443
[86709] Connecting to blynk.cloud:443
[91710] Connecting to blynk.cloud:443
[96713] Connecting to blynk.cloud:443
[101718] Connecting to blynk.cloud:443
[106664] Last error code: 702
[106667] Configuration stored to flash
[106668] CONNECTING_CLOUD => ERROR
[116669] Restarting after error.

I am using Blynk 2.0 and an Arduino MKR1000.

I am running the library sample:

/*
 * Required libraries:
 *  - WiFi101
 *  - ArduinoOTA
 *  - ArduinoHttpClient
 *  - Timer5
 *  
 * Please also update the WiFi module firmware, if needed
 */

// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLNdStwtsR"
#define BLYNK_DEVICE_NAME "LED Blink MKR1000"

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

#include "BlynkEdgent.h"

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

  BlynkEdgent.begin();
}

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

your cloud does have wrong ?

The provisioning process seems to have completed cvorrectoly, but your device can’t communicate with the Blynk server.

You seem to be using an access point on your mobile phone rather than a regular WiFi network…

I assume that your mobile service provider is blocking the Blynk traffic.
You should clear the provisioning data (by pressing the button defined in the default config of the Settings.h file) and try connecting to a normal WiFi network.

Pete.

I have changed to my normal WiFi network but the issue remains.

[4669] Using default config.
[4672] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on MKR1000

[4678] --------------------------
[4683] Product:  LED Blink MKR1000
[4689] Firmware: 0.1.0 (build Nov 27 2021 13:48:58)
[4693] Device:   MKR1000
[4698] WiFi FW:  19.4.4
[4703] --------------------------
[4708] INIT => WAIT_CONFIG
[4711] Scanning networks...
[5570] Found networks: 2
[6652] AP SSID: Blynk LED Blink MKR1000-516C4
[6654] AP IP:   192.168.4.1
[6656] AP URL:  blynk.setup.local

>Device connected to AP
[24648] Sending board info...
[31801] Applying configuration...
[31804] WiFi SSID: INFINITUM2426_2.4 Pass: CNnC917MDE
[31806] Blynk cloud: OWt0fx1ZcA50XA34VtJ8sgv40SVg7b8G @ blynk.cloud:443
[31810] WAIT_CONFIG => SWITCH_TO_STA
[31819] Switching to STA...
[32821] SWITCH_TO_STA => CONNECTING_NET
[32824] Connecting to WiFi: INFINITUM2426_2.4
[37759] Using Dynamic IP: 192.168.1.69
[37764] CONNECTING_NET => CONNECTING_CLOUD
[37776] Connecting to blynk.cloud:443
[42784] Connecting to blynk.cloud:443
[47794] Connecting to blynk.cloud:443
[52800] Connecting to blynk.cloud:443
[57807] Connecting to blynk.cloud:443
[62816] Connecting to blynk.cloud:443
[67817] Connecting to blynk.cloud:443
[72826] Connecting to blynk.cloud:443
[77827] Connecting to blynk.cloud:443
[82832] Connecting to blynk.cloud:443
[87767] Timeout
[87769] Last error code: 702
[87775] Configuration stored to flash
[87778] CONNECTING_CLOUD => ERROR
[97782] Restarting after error.

Have you updated the MKR1000 WiFi and certificates?

Pete.

The problem is not only with the MKR1000. The same happens with a MKR1010. They both do not connect to Blynk server; the same error.

I also mention that I have another device, but using the previous Blynk version (1.0) and it connects the Blynk servers without problem

But have you updated the WiFi and credentials for these devices?

Pete.

After having changed the WiFi firmware, The MKR1000 works well. The MKR1010 still could not connect.

For the moment it is enough. The one that I was interested in connecting was the MKR1000.

Thank you very much for your support.

I have the same problem with a Lolin D32 I can’t find how to solve the problem I tried with different wifi and different boards. @LMario can you help me understand how you changed the WiFi firmware?
Thank you very much!!

@Emanuele this discussion is about the Arduino MRK range of boards. The WiFi enabled versions of these boards have an update facility which allows the user to update the WiFi firmware and certificates.

Your board is an ESP32 based board which has a totally different architecture and chipset, and doesn’t require firmware updates to the WiFi settings in the same way.

I’d suggest that you start a new “Need help with my project” topic and provide ALL of the requested information as a bare minimum, and describe in detail what issues you are experiencing, what version of the ESP32 core you are using and what you see in the serial monitor.

Pete.