Connect Disconnect Repeatedly


I work with arduino MKR 1010. I would like to use Blynk app for WiFi control. I installed Blynk app and start programming one of the digital pins as an output. I make my programs on my smart phone but I have the following error: wasn’t online yet
when I try to connect the board. During the configuration procedure I didn’t find Arduino MKR 1010 and I selected Arduino MKR 1000. Is it a problem?
I realized that when I uploaded the program on my arduino board it started to connect and disconnect repeatedly. I use Linux OS and online editor for arduino programming. Is it necessary to install the offline editor or the online tool is stable enough? I uploaded one simple program without using Blynk app and my board is stable connected now. I am afraid that when I start using Blynk app again the connect and disconnect problem will appear again. Could you please help?

Post you code so we can see what you are trying to do,



Here is my code (this code is from my computer and the screenshot image is from my smart phone):

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT SerialUSB
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleWiFiShield101.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "v6TKCHb2ce6zFzNW9ARFwvnIkvC_wAoQ";
// Your WiFi credentials.

// Set password to ""for open networks.
char ssid[] = "ttt";
char pass[] = "*******";
void setup()
// Debug console

Blynk.begin(auth, ssid, pass, IPAddress(139,59,206,133), 8080);
void loop()

All code snippets should be formatted

Do not post your code blocks without proper formatting.
How to do that:

If you have already posted some code without formatting, you can edit it: find an edit button just below your post


I’m not familiar with that hardware, however if it has builtin WiFi I don’t understand why it would use BlynkSimpleWiFiShield101.h . . . anyway, the sketch builder on the Blynk website supports MKR1000 (not your MKR1010); plus the supports documents have not been updated for some time as a new version of Blynk is under development . . . we await Blynk 2.0 with baited breath . . .

In the Arduino IDE open: File | Examples | Blynk | Boards_Wifi | Arduino_MKR1010

You’ll notice this sketch uses a different Blynk library than the one you are using, also keep your Blynk.begin() statement simple, don’t use custom server or IP:Port unless you really have to:

Try this and see how you go


Thank you for your answer. I resolved my problem using WiFiNINA library. Everything is working now. I would like to ask what does it mean that energy spend for sharing is not recoverable. When I loos my energy what happens?

It means that your energy balance will reduce by 1000 units, and that if you turn off sharing for that project then your energy balance does not increase again by 1000 units.


Do I need this energy and if I lost 1000 units what’s going on?

The 1000 units for sharing is only for when you want to share your entire project with some other user. Once you share it you don’t get that energy back.

For standard widgets and services if you remove them from a project (recycle them) then you get your energy units back (mostly, a few minor exceptions).