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

Exception when trying to connect to blynk-cloud.com:80

Hi all, I have been using Blynk for a few months now and I bought a new MCU (Wemos D1 Mini Pro) which is the same as the other 2 that I am already using with Blynk to control relays around the house.
For some reason I’m having trouble connecting the new MCU to Blynk. I get an exception in the serial monitor when I use the Blynk example: ESP8266_Standalone, it does nothing except connect to my wifi and then runs Blynk.run(). I have added the sketch below.

Here is the output in the serial monitor:

[58] Connecting to Rubynet
[2061] Connected to WiFi
[2061] IP: 192.168.1.44
[2062] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[2137] Connecting to blynk-cloud.com:80
[3731] Ready (ping: 262ms).

Exception (0):
epc1=0x40227a47 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffedb0 end: 3fffffb0 offset: 01a0
3fffef50:  3ffe9058 40000f49 3fffdab0 40000f49  
3fffef60:  40000e19 40001878 00000004 00000000  
3fffef70:  3fffff10 aa55aa55 00000028 40104628  
3fffef80:  4010462e 00000004 00000000 40205a90  
3fffef90:  4010000d 40205a90 40205a90 40205a90  
3fffefa0:  401005c4 3fffef3c 40100571 3fffff18  
3fffefb0:  3fffffc0 00000000 00000000 feefeffe  
3fffefc0:  feefeffe feefeffe feefeffe feefeffe  

That stack trace decodes to the following:

0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18

On my Android device (Android 9, EMUI: 9.1.0) running the Blynk app 2.27.11 I don’t see that the device is online, I can see the other devices online, but not the new one.

My sketch looks like this:

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "******************************";
char ssid[] = "Rubynet";
char pass[] = "************";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
}

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

I’m using the same Arduino IDE (version 1.8.9 : Windows Store version 1.8.21.0) that I used to program the other MCU boards that work.

Any ideas as to why my MCU is not connecting to Blynk would be greatly appreciated.

Thanks,
Morné

Is this a new device in your project, and if so what device type have you chosen?

Pete.

Hi Pete, I have used the same device in my project (WeMos D1 Mini). Should I create a new one with a new auth token perhaps?

Yes!

Pete.

Ok I made a new device in the app and for my project and I have added the token to the code and sent it to the MCU. The MCU restarted and in the serial monitor I unfortunately still see the following:

[57] Connecting to Rubynet
[2061] Connected to WiFi
[2061] IP: 192.168.1.44
[2061] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[2137] Connecting to blynk-cloud.com:80

Exception (0):
epc1=0x4022d9f4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffe600 end: 3fffffb0 offset: 01a0
3fffe7a0:  400005e1 00000000 00000000 00000000  
3fffe7b0:  4022d9f4 00000033 0000001e 00000000  
3fffe7c0:  4010485f 04000102 00000000 00000001  
3fffe7d0:  fbf8ffff 04000002 3feffe00 00000100  
3fffe7e0:  0000001a 00000018 04000102 40104840  
3fffe7f0:  3fffc100 3ffe9ec0 00000000 00000000  
3fffe800:  00000000 00000000 00000000 00000000  
3fffe810:  00000000 00000000 00000000 00000000  
3fffe820:  00000000 00000000 00000000 00000000  
3fffe830:  00000000 00000000 00000000 00000000  
3fffe840:  00000000 00000000 00000000 00000000  
3fffe850:  00000000 00000000 00000000 00000000  
3fffe860:  00000000 00000000 00000000 00000000  
3fffe870:  4010346d 00040000 7fffffff 00000000  
3fffe880:  00000022 4010346a 00040000 40006545  
3fffe890:  3ffed120 40102396 00000000 40006545  
3fffe8a0:  40104859 40104856 00000200 4000050c  
3fffe8b0:  400005e1 401021ec 3fffc200 00000022  
3fffe8c0:  4022d9f4 00000033 0000001e 40006545  
3fffe8d0:  4010485f 04000102 00000000 00000001  
3fffe8e0:  fbf8ffff 04000002 3feffe00 00000100  
3fffe8f0:  0000001a 00000018 04000102 40104840  
3fffe900:  3fffc100 3ffe9ec0 00000000 00000000  
3fffe910:  00000021 3ffe9ec0 00000000 00000030  
3fffe920:  fffffffe 00000000 4010126b 3ffef66c  
3fffe930:  00000000 00000000 00000020 40101126  
3fffe940:  3ffe8fa0 40227e23 3ffef66c 3ffef4ac  
3fffe950:  00000000 4021bc4f 3ffed37c 4021fca8  
3fffe960:  3ffe8bd0 00000022 4021fca8 00000009  
3fffe970:  3ffef705 3ffef204 00000007 3ffedacc  
3fffe980:  3ffe8bd0 3ffe8bd0 3ffef5ff 4021da77  
3fffe990:  3ffeda80 4021d648 4021fca8 3ffeda80  
3fffe9a0:  40104f44 0000b7aa 3ffedbb0 00000000  
3fffe9b0:  40104859 40104856 3ffef5cc 4022ca00  
3fffe9c0:  400005e1 0000252e 4021f63f 3ffedb78  
3fffe9d0:  4022d9f4 00000033 0000001e 40231846  
3fffe9e0:  4010485f 04000102 00000000 00000001  
3fffe9f0:  fbf8ffff 04000002 3feffe00 00000100  
3fffea00:  0000001a 00000018 04000102 40104840  
3fffea10:  3fffc100 3ffe9ec0 00000000 00000000  
3fffea20:  3ffee20c 00000000 3ffee918 40203904  
3fffea30:  3ffe8712 3ffee238 3ffee9ac 40203904  
3fffea40:  4020216c 40202004 3ffee8f8 402036bd  
3fffea50:  00000000 00000000 00000001 40203add  
3fffea60:  4000b570 3ffee238 3ffe8d34 40203b3a  
3fffea70:  00000000 00000000 00000000 00000000  
3fffea80:  00000000 00000000 00000000 00000000  
3fffea90:  00000000 00000000 00000000 00000000  
3fffeaa0:  00000000 00000000 00000000 00000000  
3fffeab0:  00000000 00000000 00000000 00000000  
3fffeac0:  40104859 40104856 00000000 00000000  
3fffead0:  400005e1 00000000 00000000 00000000  
3fffeae0:  4022d9f4 00000033 0000001e 00000000  
3fffeaf0:  4010485f 04000102 00000000 00000001  
3fffeb00:  fbf8ffff 04000002 3feffe00 00000100  
3fffeb10:  0000001a 00000018 04000102 40104840  
3fffeb20:  3fffc100 3ffe9ec0 00000000 00000000  
3fffeb30:  00000000 00000000 00000000 00000000  
3fffeb40:  329bb8fc 3add7a52 372ca8c2 48bcfe7f  
3fffeb50:  0f501f6e 8815a9a3 1962c4b9 ed25e6c6  
3fffeb60:  aeabd88c db2c1df4 5635ca15 d3bd17b2  
3fffeb70:  4000b5f9 00000008 00000038 3fffec50  
3fffeb80:  00000008 3fffec50 2cbc8551 c7987898  
3fffeb90:  7ab73a79 bd5b9f9c d0a8a63b c2814b7e  
3fffeba0:  62d69f0b 5d360705 d23419cc 0ce597ef  
3fffebb0:  bad1ab30 cdecc886 8020d381 34f18a29  
3fffebc0:  4f14d5ff 48c7f994 abd105ba d8d7be60  
3fffebd0:  40104859 40104856 eadceca7 1c78ee86  
3fffebe0:  400005e1 100fa8a4 ef233819 836e1048  
3fffebf0:  4022d9f4 00000033 0000001e d79c945d  
3fffec00:  4010485f 04000102 00000000 00000001  
3fffec10:  fbf8ffff 04000002 3feffe00 00000100  
3fffec20:  0000001a 00000018 04000102 40104840  
3fffec30:  3fffc100 3ffe9ec0 00000000 00000000  
3fffec40:  40228e72 3ffec710 40228d17 00000001  
3fffec50:  ffffffff 00000000 3ffe90f1 00000008  
3fffec60:  40228d66 3ffec710 3ffef204 00000001  
3fffec70:  40228e72 3ffec710 3ffef204 3ffec710  
3fffec80:  00000002 00000000 00000020 40101126  
3fffec90:  3ffe8fa2 40227e23 3ffec710 3ffefd48  
3fffeca0:  00000000 4021b1fb 3ffedbd8 40101126  
3fffecb0:  00000000 00000002 00000001 3ffec710  
3fffecc0:  3ffef892 40104ba7 3ffefd48 3ffef5cc  
3fffecd0:  3ffef85c 3ffec710 3ffef204 00000000  
3fffece0:  40104859 40104856 3ffeebdc 3ffef5cc  
3fffecf0:  400005e1 0000002a 00000060 3fffee20  
3fffed00:  4022d9f4 00000033 0000001e 4020535c  
3fffed10:  4010485f 04000102 00000000 00000001  
3fffed20:  fbf8ffff 04000002 3feffe00 00000100  
3fffed30:  0000001a 00000018 04000102 40104840  
3fffed40:  3fffc100 3ffe9ec0 00000000 00000000  
3fffed50:  4023d600 000000c0 000000a8 4020f391  
3fffed60:  3ffefa90 3ffeef4c 00003a98 4020f444  
3fffed70:  40216648 00000000 3ffeef74 4020dd64  
3fffed80:  000000a8 00000001 40228d17 00000001  
3fffed90:  ffffffff 00000000 3ffe90f1 00000008  
3fffeda0:  40228d66 3ffec850 3ffed37c 3ffecf90  
3fffedb0:  00000005 00000000 00000020 40101126  
3fffedc0:  3ffe8fa5 4010451f 3ffeca08 40101126  
3fffedd0:  40101e3d 3ffeca08 3ffec850 3ffef4ac  
3fffede0:  00007fff 00254752 3ffed46c 40102012  
3fffedf0:  40104859 40104856 00000000 3ffefd48  
3fffee00:  400005e1 00254752 40102452 00000100  
3fffee10:  4022c68c 00000030 0000001e 00000001  
3fffee20:  40228982 00000023 3fffdcc0 3ffe8db0  
3fffee30:  3ffee260 3ffe982c 00000001 7fffffff  
3fffee40:  00000000 3ffe8fa5 3ffe8fa0 00000000  
3fffee50:  3ffe9eb4 3ffe9ec0 00000008 00000000  
3fffee60:  40000f68 00000030 0000001e ffffffff  
3fffee70:  40000f58 00000000 00000020 00000000  
3fffee80:  3ffe96b0 c162cd38 3ff20a00 c0000000  
3fffee90:  00001000 00000000 00000025 3fffdab0  
3fffeea0:  00000000 3fffdcc0 3ffe90b8 00000030  
3fffeeb0:  00000000 00000000 00000000 00000000  
3fffeec0:  00000000 00000000 00000000 00000000  
3fffeed0:  4022a7b6 00000000 00000019 00000000  
3fffeee0:  000005e0 00000000 40103329 3ffed120  
3fffeef0:  402278d8 00000000 3ffeca08 00000100  
3fffef00:  4022897f 00000001 4010446a 3ffed120  
3fffef10:  3ffec850 40100cba 00000000 40228269  
3fffef20:  3ffeca08 3ffe9eb4 3fffdcc0 3ffe90c0  
3fffef30:  00000080 3ffeca08 00000002 3fffdcb0  
3fffef40:  40227bbb 3fffdab0 00000000 00000001  
3fffef50:  3ffe90c0 40000f49 3fffdab0 40000f49  
3fffef60:  40000e19 40001878 00000004 00000000  
3fffef70:  3fffff10 aa55aa55 00000028 40104628  
3fffef80:  4010462e 00000004 00000000 40205a90  
3fffef90:  4010000d 40205a90 40205a90 40205a90  
3fffefa0:  401005c4 3fffef3c 40100571 3ffffea8  
3fffefb0:  3fffffc0 00000000 00000000 feefeffe  
3fffefc0:  feefeffe feefeffe feefeffe feefeffe  
3fffefd0:  feefeffe feefeffe feefeffe feefeffe  
3fffefe0:  feefeffe feefeffe feefeffe feefeffe  
3fffeff0:  feefeffe feefeffe feefeffe feefeffe  
3ffff000:  feefeffe feefeffe feefeffe feefeffe  
3ffff010:  feefeffe feefeffe feefeffe feefeffe  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe feefeffe feefeffe  
3ffff040:  feefeffe feefeffe feefeffe feefeffe  
3ffff050:  feefeffe feefeffe feefeffe feefeffe  
3ffff060:  feefeffe feefeffe feefeffe feefeffe  
3ffff070:  feefeffe feefeffe feefeffe feefeffe  
3ffff080:  feefeffe feefeffe feefeffe feefeffe  
3ffff090:  feefeffe feefeffe feefeffe feefeffe  
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0b0:  feefeffe feefeff!Ƽ⸮ε⸮⸮1⸮1⸮⸮[58] Connecting to Rubynet

Decoded it looks like this:

0x4022ca00: netif_set_addr at glue-esp/lwip-esp.c line 552
0x40203904: String::String(char const*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 36
0x40203904: String::String(char const*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 36
0x4020216c: ESP8266WiFiGenericClass::_eventCallback(void*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp line 218
0x40202004: ESP8266WiFiGenericClass::ESP8266WiFiGenericClass() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp line 88
0x402036bd: UpdaterClass::UpdaterClass() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\Updater.cpp line 45
0x40203add: esp_schedule() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 95
0x40203b3a: init_done() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 184
0x4020535c: malloc(size_t) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1677
0x4020f391: sys_timeout_abs at core/timeouts.c line 189
0x4020f444: sys_timeout_LWIP2 at core/timeouts.c line 306
0x40216648: sntp_try_next_server at apps/sntp/sntp.c line 401
0x4020dd64: memp_malloc at core/memp.c line 356
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18

I have not been working on any of my MCU devices for a few months now because everything was working fine and there was no need to work on them, but I had to replace one MCU recently and it might be possible that I have forgotten to do something with regards to setting up Blynk, etc.

Thanks
Morné

Your exception errors are now associated with your ESP core, and I see that you’re running version 2.5.2
The latest version, released yesterday, is 2.6.2

Try updating your ESP core (using boards manager) to 2.6.2 and see if that helps. If it doesn’t then try downgrading to the highest 2.4.x version available.

Pete.

After a late night, I have figured out that the problem lies with my board. I found out that it is a clone of a Wemos board and not a legit one. The supplier I bought my previous boards from gave me legit Wemos boards that time, but this time I got Wemos clones. That’s why I suspect they are not working like they should. I keep getting that exception from time to time which causes a reset and this disconnects from Blynk and my wifi every time. I went and bought a Adafruit Feather today and it works without any issues. Thanks for the quick assistance :smiley: I am back in business!