   Serial.begin(9600);
   Serial.println();
 
+  Blynk.begin(auth);
+  Blynk.setProfile(profile);
+
 #ifdef WIFI_MODE_AP
   BLYNK_LOG("Configuring WiFi access point: %s", ssid);
   WiFi.softAP(ssid, password);

// Description of the dashboard
char profile[] = R"raw({"dashBoards":[
  {"id":1,"name":"Direct connect","boardType":"ESP8266","widgets":[
    {"id":1,"type":"BUTTON","pinType":"VIRTUAL","pin":1,"value":"1","x":1,"y":1,"pushMode":false},
    {"id":2,"type":"DIGIT4_DISPLAY","pinType":"VIRTUAL","pin":9,"x":5,"y":1,"frequency":1000}
  ]}
]})raw";

// Virtual handlers for our widgets...

BLYNK_WRITE(V1) {
  // do something...
}

BLYNK_READ(V9) {
  Blynk.virtualWrite(9, millis() / 1000);

//#define WIFI_MODE_AP

// Set these to your credentials.
const char ssid[]     = "Blynk-AP";    // WiFi name
const char password[] = "12345678";   // WiFi password

// Set port of the server
const int port = 8442;
