text: #ifdef _USE_DBG
  const char log_esp8266_waiting_for_wifi[] PROGMEM = "Waiting WiFi to connect...";
  const char log_esp8266_assigned_ip[] PROGMEM = "Assigned IP address: ";
  #endif
  
  void setup_esp8266()
  {
      // Connect to WiFi network
      WiFi.begin("wifi_ap", "password");
      Log(log_esp8266_waiting_for_wifi, sizeof(log_esp8266_waiting_for_wifi));
    
      // Wait for connection
      while (WiFi.status() != WL_CONNECTED) {
        delay(500);
      }
      LogIP(log_esp8266_assigned_ip, sizeof(log_esp8266_assigned_ip), WiFi.localIP());
    
      server.on("/", handle_root);
      server.begin();
  }
  
  void loop_esp8266()
  {
      delay(100);
      server.handleClient();
      delay(100);
  }
  