I have some ESPs on my home as temp/humy probe… so, a pair of those ESP have frequently disconnections and reconnections, I guess this is due to his poor wifi range.
I would want to increment the timeout (on my local server or in the firmware?) in way that the blynk app on my phone doesn’t report continuosly disconnections. Is it possible to do this?
Yes you can change the hearbeat but I don’t really think that’s the solution. You need a “WiFi booster” of some kind. The default settings for your local server are generally fine.
… how I can do it?
Ok, found it on BlynkConfig.h!
You can also adjust it in your sketch
#define BLYNK_HEARTBEAT 20
Also look into ESPs with external antenna options… Like the Wemos D1 Mini Pro
Yes, obviously also I can define in my sketch…
I’ve just uploaded new firmware and the problem seem to be disappeared!
My hardware is just D1 Pro with external antenna, but my antenna is very poor, it’s a kind of a small plastic piece, I must change with a “real” antenna like you posted in the image above.
I haven’t tested this with my D1 pro, but apparently one might need to remove a small 0 Ohm resistor leading to the onboard antenna in order to properly use the external one?? Hmmm…
If you don’t remove the resistor the signal is weaker with the antenna connected.
I found another site that shows moving the resistor, not removing it… probably depends on if the D1 Pro is a clone or original Wemos… I need to check mine now to see which case seems to match.
EDIT On the Wemos Original, you need to shift the resistor from one antenna pad to the other. Well, I better break out the microscope and surgical tools
https://forum.wemos.cc/topic/14/recommended-external-antenna-for-d1-mini-pro/10
Is that white thingy with a red strip on it the on board antenna?
Yes, on the Pro it is a ceramic antenna.
OK, as referenced above… I suspect this might be your issue, not the type of external antenna you have. You need to remove or move the little linking resistor… and to show how it is done (or perhaps how NOT to do it ), here is a little video of me making that adjustment on mine, about an hour ago.
Yes, moving the 0 Ohm link is is a thing I must do it.
In any case, increasing the heartbeat and timeout the problem is also solved (read as workaround).