Fixing the Blynk Device Wasn’t Online Yet Error

ESP32 & IoTBy November 25, 2026Fact-checked by Hugo Lindgren
Blynk website

By Fact-checked by Hugo Lindgren Published

When Blynk shows “Wasn’t online yet”, its server has never received a successful login from your board with this device’s auth token. A device that connected once and then dropped shows “Offline” instead. That means the fault lies somewhere between your board and that first login: the upload, Wi-Fi, the server region, the token or template, or a loop() that never lets Blynk.run() finish the handshake.

BoardESP32 or ESP8266
DifficultyBeginner
Time15 to 30 minutes
CostFree Blynk plan

Build notes

  • “Wasn’t online yet” means this device’s token has never logged in. “Offline” means it connected once and then dropped.
  • Add #define BLYNK_PRINT Serial. The last line in Serial Monitor shows which stage failed.
  • The template ID, template name and auth token defines must come before every #include.
  • If your token is correct but rejected, set your regional host (ny3, fra1, lon1, sgp1) yourself.
  • Tutorials written before 2021 target Blynk Legacy, which has been shut down. Its code and local servers don’t work with Blynk IoT.

Fact-checked

We checked these key facts against the sources named, on November 25, 2026:

  • Blynk replaced its original platform with Blynk IoT, which launched in May 2021 (source: hackster.io)
  • Blynk itself doesn’t care which band you use, but the ESP8266 and the classic ESP32 only support 2.4 GHz (source: docs.espressif.com)
  • Blynk library v1.3.5 is the newest release, announced on the Blynk community forum and published on GitHub (source: community.blynk.cc)
  • Earlier 1.3.x releases added Blynk.NCP support (v1.3.0) and Arduino UNO R4 OTA updates through Blynk.NCP (v1.3.2) (source: community.blynk.cc)
  • The legacy app closed to new users in September 2021, left the app stores in June 2022, and its cloud server was scheduled to shut down at the end of 2022 (source: blynk.io)

What “Wasn’t online yet” actually means in Blynk

“Wasn’t online yet” is Blynk’s label for a device that has never connected. The device exists in Blynk.Console, but no hardware has ever logged in with its auth token. Heartbeat settings, notification rules and the Offline ignore period all act on a connection that has already existed, so none of them can change this status.

That’s why the advice for a flaky connection doesn’t apply here. A device with this status isn’t disconnecting. It has never connected at all.

Wasn’t online yet vs Offline vs Online

Each of the three statuses points to a different set of fixes.

Status What the server knows Most likely cause First fix
Wasn’t online yet A device record and token exist, but no login has ever succeeded Upload never finished, wrong or outdated token, Wi-Fi never connects, wrong region, blocked network, sketch never reaches Blynk.run() Turn on BLYNK_PRINT and read the serial log
Offline The device logged in at least once, then the connection closed and the heartbeat interval ran out Power loss, Wi-Fi drop, deep sleep, blocking code added later, ISP or router problems Check power and Wi-Fi stability, then the heartbeat and the loop
Online The device is logged in and answering heartbeats Working as intended If widgets don’t update, check datastreams and virtual pins

Which “device” Blynk is talking about

The “device” is the board running your sketch: the ESP32, the ESP8266 or NodeMCU, or the Arduino. It isn’t your phone. A Blynk community moderator made exactly this point in a forum thread about the error: the status means the hardware itself has never reached the Blynk server. Your phone can be online, logged in and showing the dashboard while the board is still stuck at its Wi-Fi step.

Did you know?

Blynk’s documentation says plainly that Blynk is a cloud platform with no offline support. The board and your phone or PC both need internet access, so a board on a local-only network can never show as online.

The 60-second check before you change any code

Most cases of “Wasn’t online yet” come from one of seven simple mistakes. Run through this list before you edit anything.

  1. Is the board actually running? Check that the power LED is on and that you’re using a data USB cable. A charge-only cable powers the board but can’t upload a sketch, so the old firmware keeps running. Our guide to micro USB vs USB C covers how to tell cables apart.
  2. Is the Wi-Fi 2.4 GHz? The ESP8266 and the original ESP32 connect only on 2.4 GHz.
  3. Does the token match? Open the device in Blynk.Console, go to Device Info and compare the auth token with the one in your sketch, character by character.
  4. Did you recreate the device? A deleted and re-added device gets a new token, so your board is still sending the old one.
  5. Are you on a school, dorm or office network? These often block the traffic Blynk needs. The hotspot test in Fix 2 settles it in two minutes.
  6. Did you add the device in the right account? If you have more than one Blynk login, check that the device is in the account you’re looking at.
  7. Did the upload really finish on the right board and port? A failed or misdirected upload leaves the old firmware running, and the device stays at “Wasn’t online yet”. Check the points in the table below.
Upload check What to look for Fix if it’s wrong
Upload result “Done uploading.” in the Arduino IDE output, or “Hard resetting via RTS pin…” at the end of the esptool log Scroll up for the first red error line and fix that first
Board selected Tools > Board shows “ESP32 Dev Module” for a generic ESP32 or “NodeMCU 1.0 (ESP-12E Module)” for a NodeMCU Pick the board that matches your hardware, then upload again
Port selected A COM port on Windows, /dev/ttyUSB0 or /dev/ttyACM0 on Linux, /dev/cu.usbserial-* or /dev/cu.SLAB_USBtoUART on macOS Unplug the board and see which port disappears. That one is yours
No port at all The board powers up but no new port appears Read the USB chip next to the connector and install its driver: Silicon Labs CP210x or WCH CH340
“Connecting……” then a timeout (ESP32) The board never entered its bootloader Hold the BOOT button when “Connecting” appears and release it once the write percentage starts

Power check

An ESP32 draws short bursts of current while its Wi-Fi radio connects. A weak USB port or a long, thin cable can trigger “Brownout detector was triggered” resets that look like a connection failure. Power the board from a good port or a stable 5 V supply on the 5V/VIN pin, never 5 V on a 3.3 V pin.

Turn on serial debug and read what your board is telling you

Serial debug is the most useful diagnostic you have. With it on, the Blynk library prints every connection stage, and the last line before the output stops or starts repeating tells you which stage failed.

Put this at the very top of your sketch, then make sure the baud rate in Serial.begin() matches the one in Serial Monitor. Press the board’s EN or RST button after you open Serial Monitor so you catch the log from its first line.

\#define BLYNK_PRINT Serial   // must come before the Blynk #include lines

void setup() {
  Serial.begin(115200);       // set Serial Monitor to 115200 baud as well
  // ...
}

A healthy ESP32 boot looks roughly like this (timestamps vary):

[120] Connecting to MyHomeWiFi
[2650] Connected to WiFi
[2651] IP: 192.168.1.42
[2652] Blynk v1.3.5 on ESP32
[2660] Connecting to ny3.blynk.cloud:80
[2890] Ready (ping: 31ms).

Garbled characters instead of text mean your baud rates don’t match. Fix that before you read anything else in the log.

What you see in Serial Monitor Stage that failed Likely cause Fix
“Connecting to MySSID” repeats, never “Connected to WiFi” Wi-Fi Wrong SSID or password, 5 GHz network, out of range, captive portal Fix 2
“Connected to WiFi” then “Connecting to blynk.cloud” repeats Reaching the server Firewall, DNS problem, wrong host or port Fix 2 and Fix 3
“Invalid auth token” Login Wrong or old token, or the wrong regional server Fix 1 and Fix 3
“Ready” appears, then the connection drops or the app never updates Staying connected Blocking code starving Blynk.run(), different device selected in the app Fix 4 and Fix 1
Nothing at all, or only boot messages Sketch never reaches Blynk Old firmware still running, missing BLYNK_PRINT, wrong baud, crash or brownout Upload check (item 7), then power, baud and code

Stuck at Wi-Fi connecting

A log that never gets past Connecting to <your SSID> means the board can’t join your network, so Blynk isn’t the problem yet. SSIDs and passwords are case-sensitive, and a stray space at the end of "MyWiFi " is enough to break it. Go to Fix 2.

Stuck at “Connecting to blynk.cloud”

Here the board has an IP address but can’t reach the Blynk server, so the Blynk connection line keeps repeating. The usual causes are a network that blocks outgoing connections, a DNS problem, or a hard-coded host from an old tutorial such as blynk-cloud.com. The hotspot test in Fix 2 tells you whether the network is to blame.

“Invalid auth token”

The server rejected your token. Usually the token really is wrong: it was copied from another device, or it belongs to a device you deleted. When it matches the Console character by character, the cause is probably your region (see Fix 3).

“Ready” but the app still says wasn’t online yet

This is the case behind “Blynk app displays ‘wasn’t online yet’ when it is online”. A Ready line proves your board has logged in with some token. Check that the device you’re looking at in the app or Console is the one whose token you flashed, then refresh the Console page or restart the app. A board that reaches Ready and then drops back to reconnecting usually has blocking code in loop() (Fix 4).

Fix 1: Template ID, name and auth token (and where they go in the sketch)

Blynk IoT needs three values to identify your device, and they must come before the Blynk #include lines. The library reads these defines when it is included. Put them later and the board can compile but connect with the wrong template information, or not connect at all.

Copying Firmware Configuration from Blynk.Console

  1. Open Blynk.Console in a browser and select your device under Devices.
  2. Open the Device Info tab.
  3. Find the Firmware Configuration block and copy all of it.
  4. Paste it as the first lines of your sketch, above every #include.

The result should look like this, with your own values in place of the examples:

\#define BLYNK_TEMPLATE_ID   "TMPL2abcdEFgh"
\#define BLYNK_TEMPLATE_NAME "Greenhouse Monitor"
\#define BLYNK_AUTH_TOKEN    "paste-your-32-character-token-here"
\#define BLYNK_PRINT Serial

\#include <WiFi.h>
\#include <WiFiClient.h>
\#include <BlynkSimpleEsp32.h>

For an ESP8266 or NodeMCU, change the two board-specific lines to #include <ESP8266WiFi.h> and #include <BlynkSimpleEsp8266.h>.

Common copy-paste mistakes

  • Defines below the includes. This is the most common structural mistake. Move all three defines to the top of the sketch.
  • One token on two boards. Each physical board needs its own device and its own token. Two boards sharing a token keep pushing each other off the connection.
  • Deleted and recreated device. The new device has a new token. Copy its fresh Firmware Configuration block and flash again, or it stays at “Wasn’t online yet” forever.
  • Template mismatch. The template ID in the sketch should match the Device Template the device was created from.
  • Hidden characters. Copying from a chat app or PDF can add smart quotes or line breaks. Paste into the IDE and check that the quotes are plain ".

Fix 2: Wi-Fi problems that keep an ESP32 or ESP8266 from connecting

A serial log that never shows Connected to WiFi is a Wi-Fi problem, not a Blynk problem. The ESP8266 and the classic ESP32 support only 2.4 GHz Wi-Fi, and both have trouble with captive portals, enterprise logins and some router features.

5 GHz and band-steering routers

Many home routers broadcast one network name on both bands and decide which band each device uses (“band steering”). An ESP32 can usually still find the 2.4 GHz signal, but mesh systems and aggressive steering sometimes cause repeated failed joins. If your router allows it, create a separate 2.4 GHz-only SSID for your IoT boards. While you’re in the router settings, check whether the network uses WPA3 only. Mixed WPA2/WPA3 mode is more forgiving for older chips.

Setting a static IP with WiFi.config() adds another trap. The address, gateway and DNS server must all be in your router’s subnet and outside its DHCP range. A static IP with no valid DNS server lets Wi-Fi connect, but the board can’t look up blynk.cloud, so the log hangs at the Blynk connection stage.

School, dorm and office networks

Managed networks are a common cause of “ESP32 connected to Wi-Fi but not connecting to the Blynk server”. Check these:

  • Captive portals. If the network makes you sign in through a web page, an ESP32 can’t complete it.
  • WPA2-Enterprise logins. Networks that ask for a username and password per person (eduroam is a common example) need extra enterprise setup in your code, and many IT departments don’t allow IoT boards at all.
  • Outbound port filtering. Firewalls often block traffic that isn’t ordinary web browsing.
  • Client isolation. This doesn’t stop cloud connections, but it does break local features if you’re also testing those.

Maker tip

Set your phone’s hotspot to 2.4 GHz (on iPhone, turn on Maximize Compatibility), put its name and password in the sketch and flash again. If the device comes online, your home, school or office network is the problem, not your code.

Fix 3: Region and GeoDNS: when a correct token is called “invalid”

Blynk runs separate regional servers, and your account lives on one of them. Normally GeoDNS sends your board’s request for blynk.cloud to the right region automatically. When it sends the board to a different region, that server has no record of your token and rejects it as invalid. Blynk’s HTTPS API troubleshooting page names GeoDNS as a cause of “Invalid token” errors for tokens that are correct. The fix is to give the board your regional host yourself.

To find your region, look in the bottom-right corner of the web Console. It shows a code such as “Region: lon1”.

Region code Location Host to use
fra1 Frankfurt fra1.blynk.cloud
lon1 London lon1.blynk.cloud
ny3 New York ny3.blynk.cloud
sgp1 Singapore sgp1.blynk.cloud
blr1 Bangalore blr1.blynk.cloud

The Bangalore host (blr1) appears in a recent revision of Blynk’s troubleshooting page. Whichever region you’re on, use the code your Console shows. Then pass the host to Blynk.begin():

Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "ny3.blynk.cloud", 80);

Projects that manage Wi-Fi themselves, for example with a Wi-Fi manager library, use Blynk.config() and connect separately:

Blynk.config(BLYNK_AUTH_TOKEN, "fra1.blynk.cloud", 80);
Blynk.connect();

Did you know?

According to Blynk’s HTTPS API troubleshooting documentation, a token that is completely correct can still be rejected as invalid if GeoDNS sends the request to the wrong regional server. Using your regional host, such as ny3.blynk.cloud, fixes it.

Fix 4: Your loop() is starving Blynk.run()

Blynk.run() handles the login handshake, heartbeats and incoming commands, and it needs to run many times per second. A delay(5000) or a while() loop that waits for a sensor keeps it from running, so the server times out the half-finished connection. You’ll see Ready, then the reconnect lines again, or the board never logs in.

Here is a blocking sketch that often causes “Device Offline after uploading my code and setup dashboard”:

void loop() {
  Blynk.run();
  float t = readTemperature();
  Blynk.virtualWrite(V1, t);
  delay(10000);               // Blynk.run() can't run for 10 seconds
}

And the same job rewritten with BlynkTimer, which comes with the Blynk library:

BlynkTimer timer;

void sendTemperature() {
  float t = readTemperature();
  Blynk.virtualWrite(V1, t);
}

void setup() {
  Serial.begin(115200);
  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "ny3.blynk.cloud", 80);
  timer.setInterval(10000L, sendTemperature);   // every 10 s, no blocking
}

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

readTemperature() stands for your own sensor function. Keep loop() to those two lines. Calling Blynk.virtualWrite() on every pass through loop() is another common mistake: it floods the server, uses up your message allowance and can get the device disconnected. Send on a timer instead, with intervals of a second or longer for most sensors. Projects that drive motors and servos follow the same rule: keep movement code non-blocking, or move it to a timer callback.

Fix 5: Edgent / Quickstart devices that never finished provisioning

Blynk.Edgent sketches don’t contain your Wi-Fi details or token. The board starts in a setup mode, and the Blynk app sends it the Wi-Fi credentials and a token during provisioning. When provisioning doesn’t finish, the device record can exist and stay at “Wasn’t online yet”.

Blynk’s official Quickstart troubleshooting for an offline device follows this order:

Build steps

  1. Confirm the board has power and your Wi-Fi SSID and password are correct.
  2. Update the ESP32 or ESP8266 core in Boards Manager.
  3. Re-flash the Edgent sketch to the board.
  4. In the Blynk app, run Device Reprovision and send the Wi-Fi credentials again.

An Edgent_ESP32 example that won’t compile usually points to an old library (Fix 6). Edgent also keeps its settings in flash, so a board provisioned with an old network or an old token can keep reusing them. Reprovisioning or a full erase-and-flash clears them.

Fix 6: Old library, new ESP32 core

An outdated Blynk library can fail to compile, or compile and behave oddly, on newer ESP32 cores. Blynk library v1.3.5 is the newest release, announced on the Blynk community forum and published on GitHub. It adds better compatibility with ESP32 Arduino Core v3.x, updates the Blynk.NCP driver dependency and API, and can be built as an ESP-IDF component. It’s available through GitHub, the Arduino Library Manager, PlatformIO and Particle Build.

Earlier 1.3.x releases added Blynk.NCP support (v1.3.0) and Arduino UNO R4 OTA updates through Blynk.NCP (v1.3.2). Blynk.NCP lets a separate network co-processor handle the connection for a main microcontroller.

Tool Where to check the version What to set
Arduino IDE Library Manager, search “Blynk”, entry by Volodymyr Shymanskyy Install 1.3.5
PlatformIO lib_deps in platformio.ini blynkkk/Blynk@^1.3.5
Any IDE Boot banner in Serial Monitor Should read v1.3.5 on ESP32
lib_deps =
  blynkkk/Blynk@^1.3.5

Sketches that still won’t build on ESP32 core 3.x sometimes compile once #include <WiFi.h> sits above the Blynk include. Community threads from before v1.3.5 also report that installing a 2.0.x ESP32 core in Boards Manager is a working fallback. After upgrading, at least one user on the forum reported compile errors coming from older Edgent example code, so start from the Edgent example that ships with 1.3.5 rather than an old copy.

Following an old tutorial? Read this first

Many tutorials that rank for Blynk projects were written for Blynk Legacy (Blynk 1.0), which has been shut down. Its tokens, servers and app don’t work with Blynk IoT (Blynk 2.0). Tell-tale signs of a Legacy tutorial: blynk-cloud.com, ports 8080 or 8442, the “energy” system for widgets, or a token emailed to you when you created a project.

Legacy Blynk timeline

Date What happened
May 27, 2021 The new Blynk platform (Blynk IoT) launched
Sep 5, 2021 The legacy app closed to new registrations
Jun 30, 2022 The legacy apps were removed from the app stores
Sep 30, 2022 In-app purchases in the legacy app were deprecated
Dec 31, 2022 The legacy cloud server was scheduled to shut down

Blynk’s legacy FAQ also says the new platform doesn’t support local servers. Blynk’s migration documentation describes how to move projects from Blynk Legacy to Blynk IoT.

Migrating a legacy sketch to Blynk IoT

  1. Create a Device Template in Blynk.Console.
  2. Add a datastream for every virtual pin your sketch uses (V0, V1 and so on), with the right data type and range.
  3. Create a device from that template and copy its Firmware Configuration block.
  4. Replace the old char auth[] line with the three defines at the top of the sketch.
  5. Remove any blynk-cloud.com or local-server address and port from Blynk.begin(). Use the default or your regional host.
  6. Update to the current Blynk library release and, if your project needs it, rebuild your dashboard in the web Console and mobile app.

Code that uses virtual pins to control physical devices usually moves across with few changes, because BLYNK_WRITE(V1) and Blynk.virtualWrite() work the same way in Blynk IoT.

A known-good ESP32 test sketch

This sketch sends the board’s uptime in seconds to V0 every second, and nothing else. An “Online” status in the Console proves your account, token, region and network all work, which puts the problem in your project code. A board that still won’t connect has a network or account problem.

Part Notes
ESP32 dev board (for example ESP32-DevKitC) Any ESP32 with an Arduino core works
USB data cable Not a charge-only cable
Blynk.Console template One datastream: V0, integer, 0 to 1,000,000
// Paste your own Firmware Configuration block here, above every #include
\#define BLYNK_TEMPLATE_ID   "TMPL2abcdEFgh"
\#define BLYNK_TEMPLATE_NAME "Uptime Test"
\#define BLYNK_AUTH_TOKEN    "paste-your-token-here"
\#define BLYNK_PRINT Serial

\#include <WiFi.h>
\#include <WiFiClient.h>
\#include <BlynkSimpleEsp32.h>

char ssid[] = "YourNetwork";      // 2.4 GHz network name, case-sensitive
char pass[] = "YourPassword";

BlynkTimer timer;

void sendUptime() {
  Blynk.virtualWrite(V0, millis() / 1000);
}

void setup() {
  Serial.begin(115200);
  // Replace ny3 with the region shown in the bottom-right of the Console
  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "ny3.blynk.cloud", 80);
  timer.setInterval(1000L, sendUptime);
}

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

This test needs no wiring, because it uses no GPIO pins. For an ESP8266 or NodeMCU, change the includes to ESP8266WiFi.h and BlynkSimpleEsp8266.h. Everything else stays the same.

How it works: Blynk.begin() connects to Wi-Fi, then logs in to your regional server and waits until it gets an answer. BlynkTimer calls sendUptime() once a second without blocking, so Blynk.run() keeps the connection alive between sends.

Maker tip

Save this sketch as its own project with your token and Wi-Fi already filled in. Whenever a bigger project stops connecting, flash the test first and you’ll know in under a minute whether the fault is in your code or your setup.

It connected once, now it’s Offline: different problem

A device that was online at least once and now shows “Offline” has moved on from “Wasn’t online yet”. You’re now dealing with a connection that drops. Blynk marks a device offline after its keep-alive connection closes and the heartbeat interval runs out. The connection lifecycle examples in Blynk’s docs use a 45-second heartbeat, and you can change it in firmware:

\#define BLYNK_HEARTBEAT 60   // seconds; put this above the Blynk #include

Deep sleep causes most of the confusion here. A sleeping ESP32 or ESP8266 closes its connection, so the server correctly reports it offline once the heartbeat window passes. The Offline ignore period in the template settings can hide those offline events on the device timeline. Community users report mixed results with long sleep intervals, though, including offline alerts that still fire during an ignore period longer than the sleep time. For a battery-powered wireless sensor network, plan for nodes to show as offline between readings, and judge their health by when they last sent data.

Other causes of a device that connects and then drops: a weak power supply, a router that disconnects idle clients, ISP or firewall packet filtering, and blocking code added after the first successful test.

Is Blynk free? Limits that affect beginners

Yes, for small projects. According to Blynk’s pricing page, the Free plan costs $0, and paid tiers start with Starter at $29 a month, followed by Prototype, Production and Enterprise.

Plan Price Devices Users Data retention Messages
Free $0 5 1 1 week 100,000
Starter $29/month 10 Not listed here 1 month 10 million

The five-device cap bites during troubleshooting, because deleting and recreating devices to “start fresh” uses slots and changes tokens every time. The 100,000-message allowance runs out fast if your sketch calls virtualWrite() on every pass through loop(), which is one more reason to send data on a BlynkTimer.

FAQ

What does “wasn’t online yet” mean in Blynk?

It means the Blynk server has never had a successful login from the hardware using this device’s auth token. The device exists in the Console, but your ESP32, ESP8266 or Arduino has never connected with its token.

Why is my ESP32 connected to Wi-Fi but not to Blynk?

A log that shows “Connected to WiFi” while the Blynk connection line keeps repeating means something between your network and the Blynk server is failing. The most common causes are a firewall or captive portal, a wrong host from an old tutorial, or a region mismatch. Test on a phone hotspot and set your regional host in Blynk.begin().

Why does Blynk say invalid auth token when my token is correct?

GeoDNS can send your board to a regional server that doesn’t hold your account, and that server rejects a token that is correct. Read the region code in the bottom-right corner of the web Console and use the matching host, such as lon1.blynk.cloud.

What is the difference between offline and wasn’t online yet in Blynk?

“Wasn’t online yet” means the device has never connected. “Offline” means it connected at least once and then lost the connection for longer than the heartbeat interval. The first is a setup problem. The second is a stability problem.

My sketch compiled, so why is the old behaviour still there?

Compiling isn’t uploading. Check for “Done uploading.” in the IDE output, the right board (ESP32 Dev Module or NodeMCU 1.0) and the right port. If no port appears, install the CP210x or CH340 driver for your board’s USB chip, and on ESP32 boards that hang at “Connecting”, hold BOOT until the write starts.

Does Blynk work with 5 GHz Wi-Fi?

Blynk itself doesn’t care which band you use, but the ESP8266 and the classic ESP32 only support 2.4 GHz. Connect them to a 2.4 GHz network, or set a separate 2.4 GHz SSID on your router.

Why does my ESP8266 NodeMCU keep showing wasn’t online yet?

Check the same things as for an ESP32: the defines are at the top of the sketch, you’re using BlynkSimpleEsp8266.h, the token is the current one, the Wi-Fi is 2.4 GHz and your regional host is set. Read the serial log at the baud rate set in your sketch to see which stage fails.

Why won’t Blynk reach “Ready” on an Arduino Mega 2560 R3?

The Mega has no Wi-Fi of its own, so it usually connects through an ESP-01 or a shield running AT firmware. Failures usually come from a baud-rate mismatch between the Mega and the ESP module, outdated AT firmware, or the module not getting enough 3.3 V current. A board with Wi-Fi built in, such as an ESP32, avoids that whole layer.

What happened to Blynk?

Blynk replaced its original platform with Blynk IoT, which launched in May 2021. The legacy app closed to new users in September 2021, left the app stores in June 2022, and its cloud server was scheduled to shut down at the end of 2022.

Can I still use the old Blynk app or a local Blynk server?

Not with the old Blynk Legacy service, which was discontinued on June 30, 2022. Move old projects to Blynk IoT with a template, datastreams and a new device token.

Is Blynk free or paid?

Both. The Free plan covers 5 devices, 1 user, 1 week of data and 100,000 messages. Paid plans add more capacity and features, and Blynk’s pricing page lists the current plans and prices.

How do I connect my ESP32 to Blynk?

Create a template and a device in Blynk.Console, then copy the Firmware Configuration block to the top of your sketch. Install the current Blynk library, set your 2.4 GHz Wi-Fi details and regional host, and flash the board. Keep loop() to Blynk.run() and timer.run().

What is Blynk used for?

Blynk is used to build phone and web dashboards for connected hardware: reading sensors, switching relays, logging data and sending alerts. Its Console manages templates and devices, Blynk.Apps run the dashboards, and Blynk.Air handles over-the-air firmware updates.

Where to go once your device shows Online

Once the test sketch shows “Online”, add your project code back one part at a time: first the sensor reads on a BlynkTimer, then the BLYNK_WRITE() handlers, then any displays. After each addition, check that the device is still online. If a change knocks it back to reconnecting, the code you just added is the cause, usually a delay() or a blocking loop.

These next projects build directly on a working connection:

  • A BlynkTimer sensor dashboard: push temperature and humidity readings to V1 and V2 on a 10-second timer.
  • Servo control from a slider: drive a servo from a BLYNK_WRITE() handler without blocking Blynk.run().
  • ESP32 deep sleep with Blynk: wake, send one reading, sleep, and set up the Offline ignore period so the nodes don’t send false alarms.
  • ESP32 vs ESP8266: pick the right board for your next connected build by comparing pins, power and Wi-Fi support.

Notes on this article

Written by

Samir covers Raspberry Pi, ESP32 and IoT projects, coding for microcontrollers and small robots. He likes projects that solve a real problem at home and writes them up so you can follow along with the same parts.

Covers: ESP32 & IoT, Raspberry Pi

  • Fact-checked by Hugo Lindgren against the sources listed below before publication.
  • Published

Fact-checking

  • Researched from 8 sources, listed below.
  • Every claim is checked by Hugo Lindgren; anything we cannot confirm is corrected, labelled or removed.
Sources (8)
  1. Blynk library v1.3.5 released (community.blynk.cc)
  2. Blynk library releases on GitHub (github.com)
  3. Blynk library v1.3.2 and Blynk.NCP v0.6.3 released (community.blynk.cc)
  4. Blynk template/libraries for ESP32 core 3.x? (community.blynk.cc)
  5. Blynk pricing (blynk.io)
  6. Blynk Legacy (blynk.io)
  7. What will happen to the legacy Blynk platform (blynk.io)
  8. HTTPS API Troubleshooting (docs.blynk.io)