Blynk unresponsive after random time (Heartbeat Timeout)

Ok guys maybe we find the error, I upload an image with disconnections, with an “CMD ERROR”

Can you guys help me with this?

Thanks in advance.

Are you using the Arduino IDE on a PC and if so why don’t you simply cut and paste Serial Monitor rather than providing those terrible images?

Good news is you appear to have a recurring error, 15 lines of debug then bang. This strongly suggests you have a bug in your sketch. Too busy at the moment for me to check it over.

1 Like

So sorry your are right, here is in text mode:

[17815883] <[14]&D[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17815953] <[14]&E[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17816023] <[14]&F[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17816093] <[14]&G[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17816163] <[14]&H[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17816233] <[14]&I[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17816303] <[14]&J[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17816373] <[14]&K[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17816443] <[14]&L[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17816513] <[14]&M[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17816583] <[14]&N[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17816653] <[14]&O[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17816723] <[14]&P[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17816793] <[14]&Q[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17816863] <[14]&R[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17816933] <[14]&S[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17817003] <[14]&T[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17817073] <[14]&U[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17817143] <[14]&V[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17817213] <[14]&W[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17817283] <[14]&X[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17817353] <[14]&Y[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17817423] <[14]&Z[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17817493] <[14]&[[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17817563] <[14]&\[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17817633] <[14]&][00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17817703] <[14]&^[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17817773] <[14]&_[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17817843] <[14]&`[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17817913] <[14]&a[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17817983] <[14]&b[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17818053] <[14]&c[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17818123] <[06]&e[00|00]
[17818123] <[14]&d[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17818195] <[14]&f[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17818265] <[14]&g[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17818335] <[14]&h[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17818405] <[14]&i[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17818475] <[14]&j[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17818545] <[14]&k[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17818615] <[14]&l[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17818685] <[14]&m[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17818756] <[14]&n[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17818826] <[14]&o[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17818896] <[14]&p[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17818966] <[14]&q[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17819989] >[00]&e[00|C8]
[17820057] <[14]&r[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17820127] <[14]&s[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17820197] <[14]&t[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17820267] <[14]&u[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17820337] <[14]&v[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17820407] <[14]&w[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17820477] <[14]&x[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17820547] <[14]&y[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17820617] <[14]&z[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17820687] <[14]&{[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17822825] <[0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17825325] Cmd error
[17825325] Connecting to blynk-cloud.com:8442
[17825759] <[02|00|01|00] a3e2edf6f00e4cc58aa9de3d263a4c78
0.21 Amps RMS
[17826161] >[00|00|01|00|C8]
[17826161] Ready (ping: 402ms).
[17826161] Free RAM: 28968
[17826161] >[14|00|01|00|0F]
[17826161] >pm[00]14[00]out[00]2[00]out
[17826228] <[11|00|02|00]Hver[00]0.5.0[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]NodeMCU[00]build[00]Feb 15 2018 11:42:35[00]
[17826295] <[14|00|03|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17826365] <[14|00|04|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17826435] <[14|00|05|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17826478] >[00|00|02|00|C8]
[17826505] <[14|00|06|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17826575] <[14|00|07|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17826645] <[14|00|08|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17826715] <[14|00|09|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17826785] <[14|00|0A|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17826855] <[14|00|0B|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17826925] <[14|00|0C|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17826995] <[14|00|0D|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17827065] <[14|00|0E|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17827135] <[14|00|0F|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17827205] <[14|00|10|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17827275] <[14|00|11|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17827345] <[14|00|12|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17827415] <[14|00|13|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17827485] <[14|00|14|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17827556] <[14|00|15|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17827626] <[14|00|16|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17827696] <[14|00|17|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17827766] <[14|00|18|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17827836] <[14|00|19|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17827906] <[14|00|1A|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17827977] <[14|00|1B|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17828047] <[14|00|1C|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17828117] <[14|00|1D|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17828187] <[14|00|1E|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17828658] <[14|00|1F|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17828728] <[14|00] [00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17828798] <[14|00]![00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17831000] <56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17833002] Cmd error
[17833002] Connecting to blynk-cloud.com:8442
Error al leer datos del sensor
0.34 Amps RMS
[17838003] Connecting to blynk-cloud.com:8442
[17838442] <[02|00|01|00] xxxxxxxx
[17838619] >[00|00|01|00|C8]
[17838619] Ready (ping: 176ms).
[17838619] Free RAM: 29480
[17838619] >[14|00|01|00|0F]
[17838619] >pm[00]14[00]out[00]2[00]out
[17838686] <[11|00|02|00]Hver[00]0.5.0[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]NodeMCU[00]build[00]Feb 15 2018 11:42:35[00]
[17838753] <[14|00|03|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17838823] <[14|00|04|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17838893] <[14|00|05|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17838960] >[00|00|02|00|C8]
[17838963] <[14|00|06|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17839033] <[14|00|07|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17839103] <[14|00|08|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17839173] <[14|00|09|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17839243] <[14|00|0A|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17839313] <[14|00|0B|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17839383] <[14|00|0C|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17839453] <[14|00|0D|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17839523] <[14|00|0E|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17839593] <[14|00|0F|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17839663] <[14|00|10|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17839733] <[14|00|11|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17839803] <[14|00|12|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17839873] <[14|00|13|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17839943] <[14|00|14|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17840013] <[14|00|15|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17840083] <[14|00|16|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17840153] <[14|00|17|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17840223] <[14|00|18|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17840293] <[14|00|19|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17840363] <[14|00|1A|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17840433] <[14|00|1B|00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17840503] <[14|00|1C|00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17840573] <[14|00|1D|00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17840643] <[14|00|1E|00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17840713] <[14|00|1F|00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17840783] <[14|00] [00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17840853] <[14|00]![00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]5
[17840923] <[14|00]"[00]Fvw[00]21[00]56[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]
[17840993] <[14|00]#[00]Fvw[00]21[00]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D]
[17841063] <[14|00]$[00]Fvw[00]21[00|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556
[17841133] <[14|00]%[00]Fvw[00]21[00|0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]55
[17841203] <[14|00]&[00]Fvw[00]21[00]6[0D|0A]556[0D|0A]556[0D|0A]556[0D|0A]556[

I can’t realize where the error is.

Please help.

Thank you.

Hi all Im having heartbeat problems, I know cause I debug it
The problem is SO RANDOM.
Im using NodeMCU.

[5137950] <[06|13|9A|00|00]
[5139450] <[14|13|9B|00|0E]vw[00]3[00]0.1046106
[5139518] <[14|13|9C|00|07]vw[00]14[00]0
[5139585] <[14|13|9D|00|07]vw[00]16[00]0
[5139951] <[06|13|9E|00|00]
[5141952] <[06|13|9F|00|00]
[5143950] Heartbeat timeout: 5143950, 5127949, 5141952
[5146953] Connecting to blynk-cloud.com:80
[5147238] <[02|00|01|00] 1abc4862e52f416287ac6804a251c5f7
[5147418] >[00|00|01|00|C8]
[5147419] Ready (ping: 180ms).
[5147419] Free RAM: 26224
[5147419] >[14|00|01|00|09]
[5147419] >pm[00]14[00]out
[5147486] <[11|00|02|00]Hver[00]0.5.1[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]NodeMCU[00]build[00]Feb 21 2018 17:07:04[00]

I probably read all post related to this, but keep having heartbeats timeouts.
Im using cloud server.

This is my code, hope you guys can help me out:

#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
#include <IRremoteESP8266.h>
#include <ArduinoOTA.h>


int khz = 38;

//Definiciones DHT22

#define DHTPIN 13         // Definimos el pin al que conectaremos el DHT22
#define DHTTYPE DHT22   // DHT 22, AM2302, AM2321

DHT dht(DHTPIN, DHTTYPE);


//Definimos objeto timer

BlynkTimer timer;
WidgetTerminal terminal(V10);



char auth[] = "xxx";
char ssid[] = "xxx";
char pass[] = "xxx";

char hostOTA[] = "NodeMCU_MainRoom";
char passOTA[] = "xxxxx";

IRsend irsend(4); //LED emisor INFRA conectado en PIN 4

unsigned int OFF[] = {9022, 4016, 603, 612, 601, 587, 603, 613, 600, 588, 601, 612, 603, 588, 599, 613, 601, 589, 598, 1616, 602, 589, 599, 613, 601, 1592, 598, 613, 601, 591, 625, 586, 600, 613, 602, 586, 601, 618, 594, 589, 603, 612, 599, 589, 602, 1615, 598, 1592, 601, 613, 598, 589, 601, 613, 600, 587, 602, 612, 602, 1589, 599, 614, 601, 1589, 601, 613, 601, 588, 599, 1616, 600, 589, 600, 20001, 599, 613, 601, 589, 621, 590, 599, 590, 625, 584, 601, 613, 572, 615, 600, 614, 597, 590, 600, 613, 599, 588, 600, 612, 602, 587, 600, 1615, 601, 586, 600, 613, 601, 589, 599, 613, 600, 588, 626, 585, 602, 591, 623, 585, 601, 612, 574, 614, 602, 612, 599, 589, 601, 612, 600, 589, 599, 1615, 599, 588, 601, 1614, 600, 587, 602};
unsigned int aire24[] =  {9040, 3990, 629, 1588, 599, 588, 605, 614, 595, 1591, 602, 1615, 598, 1598, 624, 587, 597, 591, 602, 612, 599, 589, 602, 613, 599, 1592, 602, 612, 600, 589, 629, 586, 600, 588, 602, 614, 627, 561, 601, 613, 601, 589, 623, 589, 602, 1591, 627, 1587, 628, 1565, 628, 585, 602, 590, 625, 587, 627, 564, 626, 1589, 602, 589, 628, 1587, 629, 563, 624, 589, 600, 1593, 624, 588, 601, 19992, 650, 587, 596, 590, 629, 586, 599, 589, 602, 613, 599, 590, 627, 587, 600, 588, 626, 588, 600, 589, 599, 613, 627, 565, 624, 587, 626, 1568, 626, 585, 602, 590, 595, 616, 627, 587, 599, 588, 657, 557, 599, 588, 629, 585, 625, 564, 600, 612, 601, 589, 599, 615, 628, 560, 599, 613, 602, 1592, 626, 585, 627, 1565, 626, 1589, 628};
unsigned int ventilador[] =  {9034, 3994, 626, 1593, 571, 1619, 601, 593, 593, 1620, 629, 1569, 595, 1621, 623, 1569, 624, 590, 599, 593, 624, 586, 624, 591, 598, 1593, 600, 615, 574, 614, 602, 614, 572, 618, 625, 588, 599, 589, 628, 588, 598, 590, 600, 616, 600, 1591, 627, 1592, 572, 616, 627, 588, 598, 592, 625, 589, 600, 590, 598, 1618, 627, 564, 625, 1592, 599, 590, 626, 590, 599, 1593, 625, 588, 600, 19998, 651, 1566, 598, 615, 625, 566, 596, 617, 599, 592, 596, 614, 628, 590, 570, 617, 627, 589, 595, 593, 625, 588, 600, 590, 600, 614, 601, 1591, 601, 616, 597, 592, 598, 614, 626, 567, 597, 614, 628, 566, 620, 590, 625, 591, 599, 590, 600, 615, 596, 590, 629, 588, 570, 615, 599, 617, 599, 1590, 630, 1588, 573, 1621, 625, 1589, 600};
unsigned int Grados20[] = {8928, 4080, 539, 1679, 540, 674, 516, 674, 567, 1623, 569, 1678, 515, 1652, 568, 647, 542, 645, 544, 805, 406, 674, 542, 1651, 567, 649, 541, 673, 541, 647, 594, 596, 595, 620, 540, 755, 461, 621, 566, 677, 540, 622, 566, 674, 539, 1652, 541, 1677, 567, 1652, 540, 702, 512, 641, 524, 649, 566, 673, 513, 1652, 567, 647, 570, 1619, 570, 648, 540, 647, 540, 1703, 517, 648, 566, 20024, 593, 700, 490, 752, 462, 673, 513, 673, 540, 650, 566, 648, 541, 648, 567, 621, 568, 646, 568, 623, 591, 620, 568, 622, 539, 703, 539, 1652, 541, 672, 545, 697, 516, 620, 569, 622, 592, 622, 591, 623, 567, 676, 513, 673, 514, 646, 543, 701, 542, 645, 568, 597, 564, 702, 516, 672, 540, 1624, 594, 620, 567, 647, 569, 1650, 542};
unsigned int Grados21[] = {8956, 4053, 571, 1650, 567, 620, 595, 622, 568, 1649, 540, 1679, 513, 1677, 542, 647, 541, 673, 543, 1649, 571, 644, 544, 1650, 569, 595, 620, 619, 543, 672, 567, 622, 567, 621, 594, 621, 568, 619, 568, 700, 489, 672, 542, 649, 567, 1678, 515, 1675, 543, 1623, 569, 621, 591, 622, 570, 646, 595, 619, 569, 1622, 598, 593, 567, 1656, 562, 647, 540, 677, 540, 1624, 568, 647, 568, 20026, 620, 622, 541, 647, 564, 676, 515, 676, 539, 649, 542, 700, 542, 620, 567, 620, 571, 672, 541, 621, 567, 674, 515, 703, 547, 689, 491, 1626, 542, 701, 540, 673, 461, 699, 569, 646, 566, 623, 567, 646, 568, 646, 542, 673, 516, 673, 541, 646, 593, 593, 571, 647, 568, 619, 540, 649, 593, 620, 569, 1648, 623, 594, 542, 1647, 570};
unsigned int Grados22[] = {9003, 4045, 572, 1619, 623, 591, 572, 616, 598, 1617, 571, 1618, 599, 1618, 598, 587, 626, 590, 570, 616, 626, 1591, 570, 1618, 627, 568, 593, 616, 623, 590, 571, 616, 599, 614, 599, 589, 625, 588, 571, 618, 599, 615, 623, 564, 598, 1617, 597, 1592, 602, 1613, 596, 593, 599, 614, 598, 589, 626, 586, 600, 1596, 594, 616, 623, 1564, 624, 590, 601, 589, 596, 1617, 625, 565, 624, 19959, 642, 591, 624, 591, 571, 617, 622, 589, 572, 616, 626, 586, 575, 613, 598, 616, 597, 591, 651, 562, 598, 590, 597, 615, 599, 590, 624, 1589, 600, 590, 598, 614, 600, 592, 595, 617, 597, 618, 569, 617, 623, 591, 571, 615, 624, 591, 571, 617, 626, 588, 597, 591, 625, 591, 596, 592, 597, 1617, 596, 1596, 596, 616, 598, 1594, 621};
unsigned int Grados23[] = {8953, 4141, 395, 1742, 556, 716, 500, 671, 513, 1680, 514, 1699, 517, 1673, 461, 855, 415, 725, 461, 1730, 492, 1620, 568, 1676, 564, 623, 540, 699, 492, 724, 462, 728, 513, 674, 516, 835, 269, 781, 514, 748, 520, 646, 489, 673, 539, 1704, 488, 1702, 516, 1647, 567, 623, 619, 592, 543, 645, 596, 673, 487, 1627, 589, 730, 432, 1675, 565, 677, 442, 774, 535, 1628, 540, 674, 541, 20043, 570, 657, 532, 726, 486, 726, 462, 675, 538, 754, 456, 682, 513, 672, 546, 707, 478, 716, 498, 705, 485, 764, 449, 673, 541, 640, 548, 1732, 459, 624, 564, 701, 542, 620, 622, 594, 538, 675, 540, 673, 516, 674, 566, 654, 536, 672, 514, 673, 542, 647, 541, 649, 566, 674, 543, 619, 565, 650, 566, 714, 473, 1679, 513, 1704, 513};
unsigned int Grados24[] = {8976, 4046, 569, 1620, 596, 595, 595, 615, 598, 1618, 571, 1619, 597, 1593, 598, 616, 597, 616, 598, 590, 595, 617, 596, 591, 624, 1592, 570, 619, 596, 617, 569, 619, 595, 617, 596, 591, 597, 617, 569, 641, 569, 623, 592, 617, 572, 1619, 594, 1597, 595, 1619, 595, 592, 598, 641, 596, 565, 597, 616, 625, 1566, 596, 617, 595, 1593, 599, 615, 596, 592, 598, 1619, 595, 593, 595, 20009, 597, 618, 596, 617, 573, 616, 597, 616, 571, 616, 598, 616, 570, 617, 597, 619, 568, 619, 597, 617, 595, 592, 621, 617, 597, 566, 597, 1621, 618, 567, 622, 589, 597, 591, 624, 588, 598, 617, 594, 592, 598, 615, 570, 617, 597, 640, 546, 618, 594, 619, 595, 592, 598, 639, 570, 592, 624, 1593, 593, 592, 596, 1620, 569, 1620, 596};
unsigned int Grados25[] = {9027, 4019, 571, 1619, 599, 614, 573, 617, 598, 1617, 571, 1621, 599, 1594, 597, 614, 628, 586, 573, 1620, 599, 613, 573, 616, 600, 1617, 573, 616, 626, 588, 571, 617, 627, 587, 571, 616, 600, 615, 623, 564, 600, 616, 623, 565, 598, 1618, 597, 1591, 627, 1593, 623, 564, 597, 616, 599, 590, 625, 589, 598, 1593, 626, 588, 598, 1593, 626, 588, 626, 566, 597, 1618, 597, 591, 626, 19985, 626, 588, 624, 591, 571, 616, 599, 616, 572, 617, 598, 615, 598, 591, 625, 590, 597, 591, 599, 615, 599, 589, 626, 589, 626, 565, 595, 1617, 627, 563, 599, 616, 625, 565, 595, 616, 599, 617, 596, 590, 601, 615, 572, 615, 627, 587, 574, 617, 625, 588, 598, 592, 626, 589, 596, 593, 597, 617, 598, 1591, 629, 1593, 623, 1563, 600};
unsigned int Grados26[] = {9025,4017,574,1616,625,584,604,588,624,1570,595,1618,624,1566,625,586,626,566,595,614,599,1593,622,589,627,1567,594,615,600,614,599,590,599,615,571,615,600,614,571,616,626,588,597,589,627,1590,596,1593,599,614,598,589,599,615,625,564,626,586,600,1589,625,589,600,1590,600,614,599,588,599,1617,598,590,598,20010,598,617,598,590,625,588,654,558,573,615,628,586,597,590,599,616,596,591,626,587,599,589,600,614,599,590,625,1590,599,589,600,615,599,590,622,590,600,592,619,590,600,615,573,616,624,588,571,616,600,614,597,591,627,588,597,590,600,1616,626,1564,626,1591,572,1618,654};
unsigned int Grados27[] = {9081, 3966, 626, 1568, 623, 587, 627, 565, 622, 1594, 599, 1591, 626, 1589, 628, 563, 625, 588, 628, 1564, 626, 1592, 626, 563, 623, 1594, 599, 590, 625, 585, 630, 561, 626, 588, 626, 565, 623, 588, 626, 588, 599, 588, 600, 615, 597, 1594, 626, 1590, 602, 1588, 628, 587, 573, 614, 629, 586, 572, 615, 627, 1588, 575, 614, 601, 1616, 571, 615, 629, 587, 597, 1593, 629, 585, 599, 20011, 599, 590, 602, 614, 599, 590, 628, 584, 602, 589, 598, 615, 626, 564, 624, 587, 602, 612, 599, 592, 627, 585, 573, 616, 626, 588, 571, 1619, 626, 587, 577, 612, 626, 587, 599, 589, 628, 586, 625, 563, 601, 615, 627, 563, 623, 589, 601, 590, 625, 587, 625, 567, 594, 615, 626, 589, 597, 593, 625, 587, 596, 592, 625, 587, 600};
unsigned int Grados28[] = {9061, 3992, 629, 1564, 602, 612, 628, 563, 624, 1590, 630, 1563, 601, 1617, 599, 588, 602, 614, 626, 562, 603, 612, 628, 1564, 627, 1589, 598, 590, 629, 585, 629, 559, 600, 614, 601, 587, 601, 612, 602, 590, 598, 613, 629, 585, 573, 1618, 627, 1568, 624, 1591, 625, 565, 624, 587, 602, 591, 594, 614, 602, 1595, 595, 615, 628, 1566, 597, 615, 600, 613, 600, 1591, 603, 611, 599, 19992, 620, 588, 629, 587, 627, 561, 601, 613, 626, 562, 600, 612, 602, 588, 627, 587, 601, 589, 599, 613, 629, 565, 593, 614, 629, 585, 598, 1592, 629, 586, 598, 588, 603, 613, 599, 587, 628, 586, 628, 560, 601, 613, 602, 587, 601, 612, 629, 562, 626, 584, 603, 591, 624, 585, 602, 613, 573, 1618, 602, 612, 573, 614, 628, 588, 598};
unsigned int Grados29[] = {9016, 3995, 597, 1616, 603, 588, 625, 587, 602, 1592, 599, 1617, 625, 1567, 601, 611, 605, 588, 599, 1616, 654, 537, 624, 1590, 603, 1591, 628, 587, 627, 563, 624, 586, 631, 560, 627, 585, 602, 593, 595, 615, 602, 612, 596, 590, 656, 1562, 574, 1618, 629, 1567, 597, 614, 627, 586, 574, 616, 628, 586, 597, 1594, 628, 587, 595, 1594, 628, 587, 599, 590, 600, 1618, 571, 617, 626, 19988, 602, 613, 600, 589, 627, 587, 626, 563, 627, 585, 628, 563, 626, 586, 626, 565, 624, 588, 627, 587, 571, 616, 628, 587, 598, 590, 600, 1617, 598, 590, 627, 588, 597, 590, 626, 586, 605, 584, 627, 586, 630, 561, 599, 611, 631, 562, 625, 586, 627, 586, 574, 615, 628, 584, 574, 616, 629, 583, 599, 1593, 628, 585, 599, 588, 602};
unsigned int Grados30[] = {9004, 4044, 572, 1618, 600, 615, 570, 617, 598, 1617, 572, 1617, 628, 1564, 623, 588, 599, 592, 593, 616, 626, 1589, 572, 1617, 626, 1564, 598, 611, 628, 565, 620, 589, 628, 588, 595, 590, 627, 588, 598, 589, 625, 590, 597, 590, 599, 1618, 598, 1592, 626, 1590, 597, 591, 601, 614, 597, 589, 654, 559, 600, 1592, 599, 614, 598, 1592, 600, 614, 597, 589, 628, 1589, 600, 589, 627, 19958, 649, 586, 625, 565, 598, 612, 628, 588, 598, 589, 625, 588, 572, 616, 625, 588, 598, 590, 627, 586, 598, 590, 624, 588, 626, 562, 600, 1615, 599, 590, 624, 588, 627, 563, 624, 587, 628, 562, 626, 587, 625, 565, 623, 586, 600, 614, 570, 616, 627, 588, 597, 591, 625, 589, 599, 588, 628, 1588, 597, 1593, 629, 584, 598, 589, 629};



//DEFINIMOS FUNCION PARA SENSOR DHT22

void sendSensor()
{


  float  h = dht.readHumidity();
  float  t = dht.readTemperature(); // o dht.readTemperature(true) para mostrar la Tº en Fahrenheit
  float hic = dht.computeHeatIndex(t, h,false);

  if (isnan(h) || isnan(t)) {
    Serial.println("Error al leer datos del sensor");
    //   Serial.println(DateTime.now());
    return;
  }
  Blynk.virtualWrite(V5, h);
  Blynk.virtualWrite(V6, t);
  Blynk.virtualWrite(V9, hic);

//FUNCION PARA REGISTRAR UPTIME
float value = millis() / (60*1000);
float horas = value / 60;
Blynk.virtualWrite(V20, horas);
}


void setup()
{
  irsend.begin();
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(10000, sendSensor);

  /////////OTA UPDATE//////////

    ArduinoOTA.setHostname(hostOTA);
  ArduinoOTA.setPassword(passOTA);
  ArduinoOTA.onStart([]() {
    terminal.println("OTA: Start");
  });
  ArduinoOTA.onEnd([]() {
    terminal.println("\nOTA: End");
  });
  ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
    terminal.printf("Progress: %u%%\r", (progress / (total / 100)));
  });
  ArduinoOTA.onError([](ota_error_t error) {
    terminal.printf("Error[%u]: ", error);
    if (error == OTA_AUTH_ERROR) terminal.println("OTA: Auth Failed");
    else if (error == OTA_BEGIN_ERROR) terminal.println("OTA: Begin Failed");
    else if (error == OTA_CONNECT_ERROR) terminal.println("OTA: Connect Failed");
    else if (error == OTA_RECEIVE_ERROR) terminal.println("OTA: Receive Failed");
    else if (error == OTA_END_ERROR) terminal.println("OTA: End Failed");
  });
  ArduinoOTA.begin();
  terminal.println("OTA: Ready");

  /////////OTA UPDATE//////////
  
  


 }


BLYNK_WRITE(V1) {
  int onoff = param.asInt();
  if (onoff == 1) {

    for (int i = 0; i < 3; i++)
    {
      irsend.sendNEC(0x20DF10EF, 32); // Prende TV Cuarto principal   
    }

   }

}

BLYNK_WRITE(V2) {
  int mode = param.asInt();
  if (mode == 1) {

   irsend.sendRaw(OFF, sizeof(OFF) / sizeof(OFF[0]), khz);  //Apaga aire
  }
 
}

BLYNK_WRITE(V3) {

  int aireFrio = param.asInt();
  if (aireFrio == 1) {
  
  irsend.sendRaw(aire24, sizeof(aire24) / sizeof(aire24[0]), khz);

Blynk.virtualWrite(V8, 5);
    
     }


}

BLYNK_WRITE(V4) {

  int ventilador_1 = param.asInt();
  if (ventilador_1 == 1) {
    
    irsend.sendRaw(ventilador, sizeof(ventilador) / sizeof(ventilador[0]), khz);
    
  }
}


BLYNK_WRITE(V8){
  // receive the step value as param.asInt() and then use switch to run different code
  switch(param.asInt()){
    
    case 1:
    irsend.sendRaw(Grados20, sizeof(Grados20) / sizeof(Grados20[0]), khz);    
    break;
    case 2:
    irsend.sendRaw(Grados21, sizeof(Grados21) / sizeof(Grados21[0]), khz);    
    break;    
    case 3:
    irsend.sendRaw(Grados22, sizeof(Grados22) / sizeof(Grados22[0]), khz);    
    break;
    case 4:
    irsend.sendRaw(Grados23, sizeof(Grados23) / sizeof(Grados23[0]), khz);    
    break;
    case 5:
    irsend.sendRaw(Grados24, sizeof(Grados24) / sizeof(Grados24[0]), khz);   
    break;
    case 6:
    irsend.sendRaw(Grados25, sizeof(Grados25) / sizeof(Grados25[0]), khz);    
    break;
    case 7:
    irsend.sendRaw(Grados26, sizeof(Grados26) / sizeof(Grados26[0]), khz);    
    break;
    case 8:
    irsend.sendRaw(Grados27, sizeof(Grados27) / sizeof(Grados27[0]), khz);    
    break;
    case 9:
    irsend.sendRaw(Grados28, sizeof(Grados28) / sizeof(Grados28[0]), khz);   
    break;
    case 10:
    irsend.sendRaw(Grados29, sizeof(Grados29) / sizeof(Grados29[0]), khz);    
    break;
    case 11:
    irsend.sendRaw(Grados30, sizeof(Grados30) / sizeof(Grados30[0]), khz);    
    break;
  }
}



BLYNK_WRITE(V11) {
  switch (param.asInt())
  {
    case 1: // Item 1
      irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0x201, 12);

      break;
    
    case 2: // Item 2
      irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0x203, 12);
      break;

    case 3: // Item 3
 irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0xA05, 12);
      break;
  
  case 4:  // Item 4

   irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0x203, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
      break;

  case 5:  // Item 5

   //1017
irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA07, 12);

 break;


 case 6:
//1018
irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0xA00, 12);
delay(200);
irsend.sendRC5(0x201, 12);
delay(200);
irsend.sendRC5(0x208, 12);

 break;

 //3

 case 7:

 irsend.sendRC5(0x203, 12);
break;

//4
case 8:

irsend.sendRC5(0xA04, 12);
break;

//6

case 9:

irsend.sendRC5(0x206, 12);
break;
 

    default:
      Serial.println("Unknown item selected");
  }
}


BLYNK_WRITE(V12) {
  switch (param.asInt())
  {
    case 1: // Item 1
     Blynk.virtualWrite(V12, 1);
           irsend.sendRC5(0xA11, 12);

      break;

    case 2:
      Blynk.virtualWrite(V12, 2);
            irsend.sendRC5(0xA10, 12);

      break;

  }}



void loop() {
  Blynk.run();
  timer.run(); // Iniciamos SimpleTimer
  ArduinoOTA.handle();

  
}

Thanks in advance.

Heartbeat timeouts simply means something is taking too long in your code in-between Blynk.run() calls, etc.

Not many members are going to take the time to dig into your code to ‘fix’ it… but you can make a few adjustments to Blynk that might help.

I am not sure if this works with Cloud Server, but try adding this to your sketch

#define BLYNK_HEARTBEAT 30

And adjust the time (I think it is in seconds - and normally is 10) until you get a good balance of performance/reliance.

Yes i know not many members are going to fix my code, but maybe I have a big error on my code that Im not seeing.
In the mean time I will try your suggestion.

The strange thing is that the error is Random, not when a function is used or when a button is pressed.
I have DHT22 reading errors can this be a problem? DHT22 Errors are random too.

Thanks!

Even your own network and environment can play a part in latency, I have ran into that exact issue myself (neighboring networks stepping on same channel as mine) … sooo many reasons for random timeout/re-connection issues.

This is a ping test, are the “ms” too high?

bash-4.2$ ping blynk-cloud.com
PING blynk-cloud.com (45.55.96.146) 56(84) bytes of data.
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=1 ttl=48 time=291 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=2 ttl=48 time=212 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=3 ttl=48 time=353 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=4 ttl=48 time=363 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=5 ttl=48 time=283 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=6 ttl=48 time=204 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=7 ttl=48 time=433 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=8 ttl=48 time=354 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=9 ttl=48 time=275 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=10 ttl=48 time=196 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=11 ttl=48 time=220 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=12 ttl=48 time=180 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=13 ttl=48 time=267 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=14 ttl=48 time=495 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=15 ttl=48 time=416 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=16 ttl=48 time=337 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=17 ttl=48 time=259 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=18 ttl=48 time=351 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=19 ttl=48 time=205 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=20 ttl=48 time=228 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=21 ttl=48 time=252 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=22 ttl=48 time=178 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=23 ttl=48 time=197 ms
64 bytes from 45.55.96.146 (45.55.96.146): icmp_seq=24 ttl=48 time=222 ms

--- blynk-cloud.com ping statistics ---
24 packets transmitted, 24 received, 0% packet loss, time 23006ms
rtt min/avg/max/mdev = 178.382/282.534/495.138/85.532 ms

Thanks

Not particularly… but then random issue means random… not necessarily picked up on with a ping test.

I am just suggesting that aside from the rather complex code you have going, that you could also be running into outside issues, or a combo of both.

Only you can build in tracking points via serial prints, data logging, monitoring RSSI signals etc. All we can do is toss out suggestions, particularly as your issue, while Blynk related by use, is not necessarily a ‘caused by Blynk’ issue that can be quickly pointed out.

Try extending the timeout and see if that helps over time… if so, then good, if not, then onto the next troubleshooting step.

BTW, this looks like your 2nd topic about the same issue… Please keep it to one topic at a time, thanks.

I have merged the two together.

I migrate the project to my own cloud (Aws) with local server, but I keep receiving disconections through the notification widget with instant notification. But with 30secs I did not receive any other notifications, but… heartbeat errors keep happening I suspect.

Thanks.

Not certain, but it may have something to do with all those delay(200) in your BLYNK_WRITE(V11) function. Try commenting that function out and see if you still have the issues.

That’s all I got for now.

even If im not usign it? Thats a function to change my tv channel.

Well I suspect not if you are not using it.

Maybe try removing portions of code until you get a stable connection. Then add them back in one at a time and try to see where the stability issue starts to occur. That may lead you to where the issue is.

1 Like

BTW is there any advantage by using my own cloud on AWS? Thanks! @Gunner

Does it worth by use blynk on my own cloud?

For most people Blynk’s cloud server is the best. Each time Blynk change a server setting, which s quite frequent as the app is constantly changing, you have to mess around with your local server. Cost of using Blynk server is negligible and hassle free.

1 Like

So, the overall performance with my own aws cloud is the same on blynks cloud?

If you are building a real iOT project that requires access from around the world then Blynk’s server will perform better than a typical “local” server because Blynk have servers all over the world. Blynk uses Geo-DNS for users to automatically connect to the closest server and this gives optimum performance.

AWS might offer a similar feature but probably at a cost.

A Pi Zero W as a local server in your home doesn’t offer this facility.

If you are just building a project that works locally in your home a “W” would be faster than a cloud based server but then you have all the security and maintenance issues etc.

Ok Costas, thanks for the info!