[SOLVED] Code does not work after disconnecting USB cable (Intel Edison)

I am trying to blink an LED on Intel Edison using wifi. The sketch works fine when the USB cable is connected. Once I remove the cable Blynk tells me that the device is offline. How can I solve this?
This is the sketch:

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


#include <WiFi.h>
#include <BlynkSimpleIntelEdisonWiFi.h>

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

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

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // Or specify server using one of those commands:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, server_ip, port);
}

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

Perhaps a silly question… but how are you powering your Edison once unplugged from USB?

Thanks for the reply. I should have made it clearer. It is an Intel Edison kit for Arduino:
https://store.arduino.cc/usa/intel-edison-kit-for-arduino

I used the 12 V power adapter to power it up.

You need to ensure that your program still runs after reboot. It’s question to Edison board itself, probably not Blynk-related.