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();
}