[SOLVED] Blynk v0.4.8 resets Wemos D1 mini hardware on reconnection to Blynk.connect()

That is not v0.4.8

See https://github.com/blynkkk/blynk-library/blob/master/src/Blynk/BlynkProtocol.h as at 19 June 2016, release date for 0.4.8.

Line 59 of the correct version is the additional run() that was added. Check your libraries thoroughly.

Line 215 containing 5000UL dictates connection will take 5s, you can change to 500UL for faster connections.

1 Like

I will check it thoroughly - admittley I installed 0.4.8 using the Arduino Blynk: Check for Updates option - is that not the recommended way ?

When I last looked, couple of days ago, GitHub said manual installation.

hi costas

I managed to learn a little more that may be helpful for others in the community - so thought I would share my learnings:

  1. I was a little confused as to why in my scenario it was triggering a wdt reset given the lines before I call Blynk.connect(4777) I specifically disable the software watchdog with EST.wdtDisable( ). However I learnt at https://github.com/esp8266/Arduino/blob/4897e0006b5b0123a2fa31f67b14a3fff65ce561/cores/esp8266/Esp.cpp#L97 that disabling the software watchdog invokes the hardware watchdog to kick in within 6 seconds and therefore the reason for my system reset[reason cause 4] i.e. hardware watchdog]

  2. I ran my code without disabling the software watchdog and it worked fine. The only mod i did was change BlynkProtocol.h line 215 from 5000UL to 500UL but I left the second run in at line 59.

  3. In order to make my code work with the software watchdog disabled before I call Blynk.connect(4333); I had to both delete line 59 (i.e. the run command) in BlynkProtocol.h and reduce in line 215 the reconnect time to 500UL.

Hope this helps others as well.

1 Like