EDGENT for esp Constantly goes offline

The only changes to the example code are the
three define statements
Blynk_Template _Id

And it can go offline 30 -100 times a day, usually for mere seconds.
At home test router is about 15 feet from the development boards.
I’ve tried a few different chipsets and different development boards.
I have even tried different networks and different SSIDs.
Only using 1 datastream for testing, simple led on/off button.

Any suggestions?

Biil S.

Without seeing the whole code it’s hard to say what’s wrong.

What type of datastream?
Which pin is it connected to?


On this test I have a led attached to Pin 2 on a esp32-wroom-32Uwith a remote Antenna.
Been trying this chipset thinking it might help.

Used nin the past, Esp82660D (Wemos D1), esp8266 12E,
ESP Wroom-32, Doiting ESP-12F.
only code change was the three #define statements.

#define BLYNK_TEMPLATE_ID "TMPLa????????"
#define BLYNK_DEVICE_NAME "life test"
#define BLYNK_AUTH_TOKEN "tdGaR?????????"
#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_TTGO_T7

#include "BlynkEdgent.h"

void setup()


void loop() {

@LockMan Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:

Copy and paste these if you can’t find the correct symbol on your keyboard.


@LockMan You’ve edited your post, but despite me giving you examples of what triple backticks look like, and encouraging you to copy/paste my examples, you’ve chosen to use some other random keyboard characters - which doesn’t succeed in your code displaying correctly.

Please try again.


thanks looks better

In your first post you said…

and I asked…

and you’ve not answered these questions.
A screenshot of this datastream setup in the web console template screen is the easiest way to provide this information.


IO2 pin 2 on the ESP32-wroom-32U board.

Data Stream

ID Led
1 Led
Alias Led
Pin 2
Data Type Integer
Min 0
Max 1

when using app or web page Button the led does turn On and Off.

At first I had my device working as I wanted on an Esp8266 12E.
than changed to a Wemos D1.
worked fine , but with 5 to 10 off line notices in a week, could live with that. than had printed up some boards. Ordered some new D1’s when the boards came in.
than would get 5- to 100 off line notices a day.
switched to the remote antenna chip on Perf board with same issue. than tries just the simple example code to see if the problem was in the code.
but seems i still got the notices, than moved to an entire new environment ( new building, new network and SSID) .

You still haven’t said what TYPE of datastream this is.


Sorry was giving it Structure…
Its a digital data stream

Okay, my advice would be not to use digital datastreams, they aren’t implemented well in Blynk IoT.
I’d recommend sticking with Virtual only.

Also, it seems from the (rather disjointed) information you’ve provided that your problems were much less when using pre-built dev boards than with your own design of board. Is this correct, and have you tried going back to the pre-built boards.

Also, you haven’t un-commented one of the board types, so the custom board type pins in Settings.h are being used - which may not be appropriate for your hardware.


Ok ,Thanks for your replies.
When I said I had boards printed, boards were made so the development boards would plug into sockets , I am not making my own ESPs. I’ll double check the default setting statements later today.

thanks for the input.

Bill S.

And have you tested the ESPs when they aren’t plugged-in to your custom boards?


Yes, presently I have the ESP-Wroom-32U on a bread board with a led attached to ground and pin 2.

But as you pointed out I totally forgot about the setup file chip select in Settings.h.
will spend some time going over that.

thanks you

Bill s.

You might want to read this:

and hopefully a suitable current limiting resistor too?