Arduino Nano IoT not connecting to cloud

Hello! I have been working with Blynk and an Arduino Nano IoT, and I can get the Arduino connected to the internet and the Blynk system, but the program keeps repeating the connection process and the device does not come online in the app. The output looks as such:

[2039] IP:
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.8 on Arduino

[2041] Connecting to
[2235] Ready (ping: 80ms).
[7429] Connecting to
[7595] Ready (ping: 100ms).
[12789] Connecting to
[13515] Ready (ping: 411ms).

Does anyone know how to fix this problem? The rest of my code is pasted below.

  This is a simple demo of sending and receiving some data.
  Be sure to check out other examples!

/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID           "TMPL2KjH8xvc2"
#define BLYNK_TEMPLATE_NAME         "Quickstart Device"
#define BLYNK_AUTH_TOKEN            "btp4xkQ5LnEqo8OcX3qEuHEUPzm8rfZz"

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT SerialUSB

#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "*********"; // I'm not putting my ssid and password here
char pass[] = "**********";

BlynkTimer timer;

// This function is called every time the Virtual Pin 0 state changes
  // Set incoming value from pin V0 to a variable
  int value = param.asInt();

  // Update state
  Blynk.virtualWrite(V1, value);

// This function is called every time the device is connected to the Blynk.Cloud

// This function sends Arduino's uptime every second to Virtual Pin 2.
void myTimerEvent()
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V2, millis() / 1000);

void setup()
  // Debug console

  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  // You can also specify server:
  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "");
  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(64,225,16,22), 8080);

  // Setup a function to be called every second
  timer.setInterval(1000L, myTimerEvent);

void loop()
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!

@danielscarbrough Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your serial output and code so that they display correctly.
Triple backticks look like this:

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


Thank you so much for pointing that out! I wasn’t sure how that worked, got it all setup now!

Also side note, I’ve been perusing these forums for a while to see if I can find a way to fix my problem, you sure make your way around Pete :smiley:

Same issue as in this post, you have the Blynk for Chinese library installed…


Hey Pete!

I was using the online Arduino IDE, which apparently has the Chinese version preinstalled. I couldn’t find a way to not use the library online, so I downloaded the offline compiler and after getting all the proper libraries installed, I was able to get the code working.

Thank you so much dude, you’re a legend!

1 Like