[SOLVED] ERROR When Flashing Arduino MKR1000

Hi all i’m having this error when i try to flash my sketch in my MKR1000 using the sketch example from Blynk

C:\Users\COFFEY\Documents\Arduino\sketch_jun11a\sketch_jun11a.ino:32:21: fatal error: WiFi101.h: No such file or directory

 #include <WiFi101.h>

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino MKR1000.

This is the sketch

  Download latest Blynk library here:

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp

  Blynk library is licensed under MIT license
  This example code is in public domain.


  Blynk using a LED widget on your phone!

  App project setup:
    LED widget on V1

/* 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[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

WidgetLED led1(V1);

BlynkTimer timer;

// V1 LED Widget is blinking
void blinkLedWidget()
  if (led1.getValue()) {
    SerialUSB.println("LED on V1: off");
  } else {
    SerialUSB.println("LED on V1: on");

void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);

  timer.setInterval(1000L, blinkLedWidget);

void loop()


All the libraries are installed in the following path:

Don’t understand why this is hapenning im using the latest library from Blynk 0.4.7 Windows 10 and Arduino IDE ver 1.8.1
When i use the MKR1000 with the normal sketchs from Arduino everething is fine.

I will appreciate your help to solve this issue.

Looks like you made the wrong selections for your hardware in the Sketch Builder.

Why don’t you just google for WiFi101?
Just install WiFi101 library…

Hi All.
Sorry that was a lapsus …!
Everything is working now…!

Best Regards and thank you for your help.

1 Like